/* SCT Auth Styles */
.auth-container {
    background: #f8fbff;
    min-height: 100vh;
}

.sct-auth-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: calc(30px + env(safe-area-inset-top)) 20px 60px; /* 极致压缩底部留白 */
    color: #fff;
    border-bottom-left-radius: 45px;
    border-bottom-right-radius: 45px;
    position: relative !important;
    z-index: 1 !important; /* 强制设为低层级 */
    overflow: hidden;
}

.sct-auth-header .back-btn {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.sct-auth-header .logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px; /* SCT Pro Max: 再次减小上边距（从20px降至5px），将LOGO标题整体上提到最高处，防止被下方卡片遮挡 */
}

.sct-auth-header .logo-box img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    /* SCT Pro Max: 保持透明背景与 LOGO123 要求 */
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.sct-auth-header h1 { font-size: 24px; font-weight: 900; margin: 0; }
.sct-auth-header p { font-size: 12px; opacity: 0.8; margin: 5px 0 0; }

.sct-auth-header .tagline {
    margin-top: 10px; /* SCT Pro Max: 紧凑布局，将副标题也上提 */
}

.auth-card {
    margin: -35px 15px 0; /* 减小负边距，让卡片自然压住页眉边缘即可 */
    background: #fff;
    border-radius: 30px;
    padding: 30px 20px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999 !important; /* 强制设为最高层级，绝对压在蓝色背景上 */
}

.sct-input-item {
    background: #fff; /* 改为白色背景 */
    border-radius: 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1.5px solid #edf2f7; /* 增强边框可见度 */
    transition: all 0.3s ease;
}

.sct-input-item:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.sct-input-item .field-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

/* SCT Pro Max: 单独放大用户名图标，解决视觉大小不统一的问题 */
.sct-input-item .field-icon.username-icon {
    width: 25px;
    height: 25px;
    margin-left: -2px; /* 微调间距，确保视觉居中 */
}

.sct-input-item input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    height: 55px !important;
    font-size: 15px !important;
    margin: 0 !important;
    padding: 0 12px !important;
}

.toggle-pass {
    color: #94a3b8;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-pass i {
    font-size: 18px;
}

.toggle-pass:active {
    opacity: 0.7;
    transform: scale(0.9);
}

.auth-submit button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    height: 55px;
    border-radius: 18px;
    border: none;
    font-size: 17px;
    font-weight: 800;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 13px;
    color: #64748b;
}

.auth-links a { color: #3b82f6; font-weight: 700; text-decoration: none; }

.auth-agreement {
    margin-top: 30px;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.auth-agreement input { width: 14px; height: 14px; }

input::-webkit-reveal,
input::-webkit-clear-button,
input::-ms-reveal {
    display: none !important;
}
