/*
 * 通行证表单壳（登录 / 注册 / 找回密码 / 资料强制等共用）
 * 宽屏锁高防双滚动；≤900px 视口内居中，仅 .login-container 纵向滚动
 */
html.auth-shell-root {
    height: 100%;
}

body.auth-shell {
    min-height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    overflow-x: hidden;
}

@media (min-width: 901px) {
    html.auth-shell-root,
    html.auth-shell-root body.auth-shell {
        height: 100%;
        overflow: hidden;
    }

    html.auth-shell-root .login-container {
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    html.auth-shell-root {
        height: auto;
        min-height: 100%;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
    }

    body.auth-shell {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: 100svh;
        min-height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
        margin: 0;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .auth-shell .login-container {
        flex: 1 0 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding:
            max(12px, env(safe-area-inset-top, 0px))
            max(12px, env(safe-area-inset-right, 0px))
            max(20px, env(safe-area-inset-bottom, 0px))
            max(12px, env(safe-area-inset-left, 0px));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .auth-shell .login-card {
        align-self: center;
        width: min(100%, 400px) !important;
        max-width: 400px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-shrink: 0;
        border-radius: 14px;
    }

    .auth-shell .login-card.auth-expanded {
        margin-top: max(12px, env(safe-area-inset-top, 0px)) !important;
        margin-bottom: 0 !important;
    }
}

/* 主按钮 / 输入框：与已登录页主操作一致 */
.auth-shell .submit-btn {
    background: linear-gradient(135deg, #0181f8, #06c);
    box-shadow: 0 2px 8px rgba(1, 129, 248, 0.25);
    border-radius: 13px;
    padding: 14px;
    transition: opacity 0.18s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}

.auth-shell .submit-btn:hover {
    opacity: 0.92;
    background: linear-gradient(135deg, #0181f8, #06c);
}

.auth-shell .submit-btn:active {
    transform: scale(0.98);
    opacity: 1;
}

.auth-shell .form-input {
    border-radius: 13px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
    -webkit-tap-highlight-color: transparent;
}

.auth-shell .form-input:focus {
    background: #fff;
    border-color: #3b82f6;
}

.auth-shell .password-toggle {
    -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
    .auth-shell .submit-btn:hover {
        opacity: 1;
    }
}
