* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #fff;
}

/* WRAPPER */
.auth-wrapper {
    display: flex;
    max-height: 100vh;
}

/* SECTION GAUCHE */
.auth-left {
    width: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.form-box {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.logo {
    width: 90px;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 10px;
}

.subtitle {
    color: #2563eb;
    margin-bottom: 30px;
}

/* FORM */
.field {
    position: relative;
    margin-bottom: 15px;
}

.field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
}
.field input {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.field input:focus {
    outline: none;
    border-color: #2563eb;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* SECTION DROITE */
.auth-right {
    width: 50%;
    background-color: black;
    overflow: hidden;
    position: relative;
}

/* CAROUSEL */
.carousel {
    height: 100%;
    transition: transform 2s ease-in-out;
}

.slide {
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slide img {
    width: 310px;
    border-radius: 50%;
    margin-bottom: 25px;
}

.slide p {
    font-size: 20px;
    max-width: 400px;
    margin-bottom: 10px;
    color: white;
}

.slide span {
    font-weight: bold;
    color: #2563eb;
}

/* ===== PRIVACY BLOCK ===== */

.privacy-consent {
    margin-top: 18px;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-wrapper input {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid #bcc0c4;
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper input:checked + .custom-checkbox {
    background: #1877f2;
    border-color: #1877f2;
}

.checkbox-wrapper input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper .text {
    color: #606770;
}

.checkbox-wrapper a {
    color: #1877f2;
    text-decoration: none;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* ===== ERROR MESSAGE ===== */

.privacy-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: #d93025;
}

/* ===== BUTTON STATE ===== */

.register-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    background: #1877f2;
    color: #fff;
    transition: 0.2s ease;
}

.register-btn:disabled {
    background: #bcc0c4;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ================= FOOTER CAG ================= */

.cag-footer {
    background: #0f172a;
    color: #d1d5db;
    padding: 60px 40px 0 40px;
    margin-top: 80px;
    font-family: Arial, Helvetica, sans-serif;
}

/* GRID 4 COLONNES */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

/* COLONNES */
.footer-col h4 {
    margin-bottom: 15px;
    font-size: 15px;
    color: #ffffff;
}

.footer-logo {
    color: #4da3ff;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
}

/* LIENS */
.footer-col a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-col a:hover {
    color: #4da3ff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

/* SUPPORT */
.support-hours {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

/* FLAGS */
.flags {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.flags img {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.3s ease;
}

.flags img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.locations {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* FOOTER BOTTOM */
.footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cag-footer {
        padding: 40px 20px 0 20px;
    }
}

/* RESPONSIVE */
@media (max-width: 700px) {
    body {
        margin: 5px;
    }

    h1 {
        font-size: 20px;
    }

    /* WRAPPER */
    .auth-wrapper {
        gap: 10px;
    }
    .auth-left {
        width: 100%;
    }

    .auth-right {
        display: none;
    }

    /* CAROUSEL */
    .carousel {
        height: 100%;
        transition: transform 2s ease-in-out;
    }

    .slide {
        height: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .slide img {
        width: 100px;
        border-radius: 50%;
        margin-bottom: 15px;
    }

    .slide p {
        font-size: 20px;
        max-width: 500px;
        margin-bottom: 10px;
        color: white;
    }
}
