@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

body {
    font-family: "Poppins", sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top, #e4e0f2 0, #fbf9fb 30%, #eef2ff 100%);
}

/* Désactive le zoom automatique sur les éléments interactifs (double-tap) */
input,
select,
textarea,
button {
    touch-action: manipulation;
}

.box {
    overflow: hidden;
    width: 100%;
    max-width: 1040px;
    border-radius: 1.5rem;
}

.inner-box {
    /*! display: flex; */
    /*! min-height: 520px; */
    /*! border-radius: 1.1rem; */
    overflow: hidden;
}

.forms-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
    /*! background: #1b2820; */
}

.carousel img {
    max-width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 4px solid #ffffff;
}

.logo {
    margin-bottom: 1em;
}

.logo img {
    max-width: 100px;
}

.heading {
    text-align: center;
    margin-bottom: 30px;
    max-width: 98%;
}

.heading h2 {
    color: #111827;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.heading h6 {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9rem;
}

.input-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.6rem;
    background: none;
    border: 1px solid #d5d5d5;
    border-radius: 0.75rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-size: 0.9rem;
}

.input-field:focus {
    border-color: #2e2e30;
    /*! background-color: #ffffff; */
    box-shadow: 0 0 0 1px rgba(33, 92, 92, 0.06), 0 8px 16px -8px rgba(15, 23, 42, 0.18);
    outline: none;
}

.input-wrap label {
    position: absolute;
    left: 2.6rem;
    top: 0.9rem;
    font-size: 0.9rem;
    color: #9ca3af;
    pointer-events: none;
    transition: 0.2s ease;
    background: transparent;
}

.input-wrap i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.2s ease;
    font-size: 16px;
}

.input-field:focus~i,
.input-field:not(:placeholder-shown)~i {
    color: #215C5C;
}

.input-field:focus+label,
.input-field:not(:placeholder-shown)+label {
    font-size: 0.75rem;
    top: -0.5rem;
    left: 1.4rem;
    color: #1B2820;
    background: #f9fafb;
    padding: 0 4px;
    border-radius: 999px;
}

.sign-btn {
    width: 100%;
    background-color: #2e2e30;
    color: white;
    border: none;
    padding: 0.93rem 1.2rem;
    border-radius: 0.625rem;
    font-weight: 600;
    transition: 0.4s;
    margin-top: 10px;
    font-size: 0.9rem;
}

.sign-btn:hover {
    background-color: #060707;
}

.t-footer {
    text-align: center;
    margin-top: 30px;
    color: #9ca3af;
    font-size: 0.75rem;
    position: relative;
    top: 0.9em;
}

.text-group {
    color: #0f172a;
    margin-top: 20px;
}

.text-group img {
    max-width: 90px;
}

.t_black {
    color: #4b5563;
    font-size: 13px;
    margin-top: 15px;

}

hr.style-two {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(47, 45, 45, 0.3), rgba(2, 2, 2, 0.75), rgba(28, 27, 27, 0.21));
    margin: 25px 0;
    width: 100%;
}


.alert-toast {
    position: fixed;
    top: -100px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    opacity: 0;
    transition: all 0.5s ease;
    background-color: #db2d4e;
    color: #fff;
    border: 1px solid #db2d4e;
    word-wrap: break-word;
}

.alstsu {
    background-color: #12c99b !important;
    color: #fff !important;
    border: 1px solid #12c99b !important;
}

.alert-toast.show {
    top: 20px;
    opacity: 1;
}

.alert-toast.hide {
    top: -100px;
    opacity: 0;
}

.alert-toast .toast-content {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.alert-toast .toast-content i {
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-toast .toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.alert-toast .close-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    color: #fff;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-toast .close-btn:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alert-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}


@media (max-width: 768px) {
    .inner-box {
        flex-direction: column;
    }

}