/* ==========================================================================
   Deployment Manager — auth.css
   Page de connexion : formulaire à gauche, panneau produit à droite.
   ========================================================================== */

.auth-body {
    background: var(--color-surface);
}

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== COLONNE FORMULAIRE ===== */
.auth__main {
    display: flex;
    flex-direction: column;
    padding: 32px 48px 24px;
    background: var(--color-surface);
    min-width: 0;
}

.auth__top {
    display: flex;
    align-items: center;
}

.auth__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

.auth__panel {
    width: 100%;
    max-width: 400px;
}

.auth__foot {
    font-size: 12px;
    color: var(--color-text-muted);
}

.auth__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.auth__sub {
    margin: 8px 0 28px;
    color: var(--color-text-muted);
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth__link {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-border-strong);
}

.auth__link:hover {
    text-decoration-color: var(--color-primary);
}

.auth__demo {
    margin-top: 24px;
    padding: 14px 16px;
    font-size: 13px;
    background: var(--color-bg);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
}

.auth__demo b {
    display: block;
    margin-bottom: 4px;
}

.pw {
    position: relative;
}

.pw .input {
    padding-right: 84px;
}

.pw__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-soft);
    border-radius: 4px;
}

.pw__toggle:hover {
    background: var(--color-divider);
}

.pw__toggle .icon {
    width: 14px;
    height: 14px;
}

.auth__caps {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #92400E;
}

.auth__caps.is-on {
    display: flex;
}

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.auth__back:hover {
    color: var(--color-text);
}

.auth__back .icon {
    width: 14px;
    height: 14px;
}

.auth__done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.auth__done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-accent);
}

.auth__done-icon .icon {
    width: 26px;
    height: 26px;
}

/* ===== CODE À 6 CHIFFRES ===== */
.otp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.otp .input {
    padding: 0;
    height: 52px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 600;
}

/* ===== PANNEAU PRODUIT ===== */
.auth__aside {
    display: flex;
    align-items: center;
    padding: 48px;
    color: #E7E5E4;
    background: var(--color-primary);
    min-width: 0;
}

.auth__aside-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth__kicker {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.auth__headline {
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #FFFFFF;
}

.auth-mock {
    padding: 18px;
    margin-bottom: 32px;
    background: #292524;
    border: 1px solid #44403C;
    border-radius: var(--radius-lg);
}

.auth-mock__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #A8A29E;
}

.auth-mock__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.auth-mock__row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
}

.auth-mock__row span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-mock__row b {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #FFFFFF;
}

.auth-mock__bar {
    height: 6px;
    background: #44403C;
    border-radius: 3px;
    overflow: hidden;
}

.auth-mock__bar i {
    display: block;
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
}

.auth__points {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.auth__points .icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth__aside {
        display: none;
    }

    .auth__main {
        padding: 24px 24px 20px;
    }
}

@media (max-width: 767px) {
    .auth__main {
        padding: 20px 16px 16px;
    }

    .auth__title {
        font-size: 24px;
    }

    .auth__center {
        align-items: flex-start;
        padding-top: 24px;
    }

    .otp {
        gap: 6px;
    }

    .otp .input {
        height: 56px;
    }
}
