/* Auth mobile — style écrans login / signup (capture app) */

.login-page {
    --auth-blue: #2f6fed;
    --auth-link: #2f6fed;
    --auth-link-alt: #74079f;
    --auth-border: #d1d5db;
    --auth-text: #111827;
    --auth-muted: #9ca3af;
    --auth-error: #dc2626;
    --auth-radius: 10px;

    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: inherit;
    color: var(--auth-text);
    background: #ffffff;
}

.login-page--auth-form {
    overflow-y: auto;
}

.login-page__bg {
    display: none;
}

.login-page__main {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: 12px 20px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.login-shell {
    width: 100%;
    max-width: 420px;
}

.login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 4px 0 8px -8px;
    color: var(--auth-text);
    text-decoration: none;
    border-radius: 10px;
}

.login-back:hover {
    background: #f3f4f6;
}

.login-back i {
    font-size: 18px;
}

.login-card,
.login-card--signup {
    width: 100%;
    max-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.login-card__logo,
.login-card__brand {
    display: none;
}

.login-box {
    display: flex;
    flex-direction: column;
}

.login-box__title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-text);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.login-box__subtitle {
    margin: -12px 0 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--auth-muted);
}

.login-messages {
    margin-bottom: 16px;
}

.login-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    background: #fef2f2;
    color: var(--auth-error);
    border: 1px solid #fecaca;
}

.login-field {
    margin-bottom: 10px;
}

.login-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-text);
    line-height: 1.3;
}

.login-hint {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--auth-muted);
    line-height: 1.35;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-wrap__icon {
    display: none;
}

.login-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    height: auto;
    padding: 7px 32px 7px 12px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: #ffffff;
    color: var(--auth-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.login-input-wrap input::placeholder {
    color: var(--auth-muted);
}

.login-input-wrap input:focus {
    border-color: var(--auth-blue);
}

.login-input-wrap input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-input-wrap--plain input {
    padding-right: 12px;
}

.login-input-wrap__toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.login-input-wrap__toggle i {
    font-size: 14px;
}

.login-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--auth-error);
}

.login-error:empty {
    display: none;
}

.login-forgot {
    display: block;
    margin: -2px 0 14px;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-link);
    text-decoration: underline;
}

/* Bouton contour bleu — comme capture */
.login-submit.button-outline {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 12px !important;
    border: 1.5px solid var(--auth-blue) !important;
    border-radius: var(--auth-radius);
    background: #ffffff !important;
    color: var(--auth-blue) !important;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.login-submit.button-outline:hover {
    background: #eff6ff !important;
    color: var(--auth-blue) !important;
}

.login-submit.button-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-divider {
    display: block;
    margin: 14px 0 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: 0.04em;
}

.login-divider::before,
.login-divider::after {
    display: none;
}

.login-divider span {
    text-transform: uppercase;
}

.login-signup {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--auth-text);
}

.login-signup a {
    color: var(--auth-link-alt);
    font-weight: 600;
    text-decoration: underline;
}

.login-alt-link {
    margin: 12px 0 0;
    text-align: center;
}

.login-alt-link a {
    color: var(--auth-link);
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    min-height: 0;
    width: auto;
    display: inline;
}

.login-legal {
    margin: 28px 0 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--auth-muted);
}

.login-legal a {
    color: var(--auth-link-alt);
    text-decoration: underline;
}

.login-back--text {
    width: auto;
    height: auto;
    margin: 20px 0 0;
    padding: 0;
    font-size: 14px;
    color: var(--auth-muted);
    gap: 6px;
}

.login-info-box {
    text-align: center;
}

.login-info-icon {
    margin: 0 0 12px;
    font-size: 40px;
    color: var(--auth-blue);
}

.login-info {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--auth-muted);
}

@media (max-width: 768px) {
    .login-page__main {
        padding: 8px 16px max(20px, env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .login-box__title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .login-field label {
        font-size: 13px;
    }

    .login-input-wrap input {
        padding: 7px 32px 7px 12px;
        font-size: 14px;
    }

    .login-submit.button-outline {
        padding: 8px 12px !important;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .login-page__main {
        align-items: center;
        padding-top: 32px;
    }
}
