:root {
    --primary: #FFBF00;
    --nav-bg: #2e2e38;
    --menu-bg: #1a1a24;
    --text-light: #ffffff;
    --text-soft: #e8eef7;                       /* 柔和星光白：用于标题、按钮文字 */
    --text-muted: rgba(232, 238, 247, 0.78);    /* 次要文字：用于段落、辅助说明 */
    --hover-bg: #2e2e38;
    --text-dark: #000000;
    --placeholder-color: #aaaaaa;
    --error-color: #e74c3c;
    --success-color: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-soft);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 全局平滑滚动 */
html {
  scroll-behavior: smooth;
}

.container-login {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100vh;
}

/* -- 导航栏 -- */
.navbar-container-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container-login {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    margin: 0 auto;
    height: 18vh;
    box-sizing: border-box;
}

.logo-container-login {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.logo-main-login {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    align-items: center;
    gap: 10px;
    line-height: 1;
    height: 100%;
}

.logo-main-login img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* -- 背景图片 -- */
.img-container-login {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    justify-content: center; /* 水平居中内容 */
    align-items: center; /* 垂直居中内容 */
    margin: 0 auto; /* 双保险水平居中 */
    overflow: visible;
    z-index: 1;
}

.img-container-login img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

/* 背景图上叠加柔和暗色渐变：上下略深、中间略浅，保留夜空氛围的同时让文字更易读 */
.img-container-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 14, 28, 0.55) 0%,
        rgba(8, 14, 28, 0.30) 45%,
        rgba(8, 14, 28, 0.65) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.content-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 18rem 0 15rem 0;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.header-login {
    text-align: center;
}

.header-login h1 {
    font-size: 55px;
    color: var(--text-soft);
    margin-bottom: 0.6rem;
    font-weight: 200;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 24px rgba(180, 200, 230, 0.35),   /* 微弱星光辉光 */
        0 2px 10px rgba(0, 0, 0, 0.45);       /* 轻微阴影提升可读性 */
}

.header-login p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 56.25rem;
    margin: 0 auto;
    line-height: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* === Sign in 按钮容器：表单激活时收起 === */
.signin-login {
    overflow: hidden;
    max-height: 5rem;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    margin-top: 4.5rem;
}

.signin-login.hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.btn-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22.5rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--text-soft);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    place-items: center;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.btn-signin:hover {
    color: var(--text-dark);
    background: var(--primary);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(255, 191, 0, 0.35);
    transform: translateY(-1px);
}

/* === 登录表单面板：默认隐藏，激活时滑出 === */
.login-panel {
    width: 100%;
    max-width: 22.5rem;
    margin: 0 auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.5s ease, opacity 0.4s ease 0.05s, margin 0.5s ease;
}

.login-panel.active {
    max-height: 600px;
    opacity: 1;
    margin-top: 2.25rem;
    pointer-events: auto;
}

/* === 表单容器 === */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* === 返回链接 === */
.back-to-signin {
    align-self: flex-end;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.back-to-signin:hover { color: var(--primary); }
.back-to-signin i { margin-right: 0.35rem; }

/* === 字段组（图标的相对定位父元素） === */
.form-verify {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.form-verify label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.form-verify input {
    width: 100%;
    height: 2.75rem;
    padding: 0 2.5rem 0 0.875rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-verify input::placeholder {
    color: var(--placeholder-color);
    opacity: 0.6;
}

.form-verify input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.18);
}

/* === 输入框右侧图标（覆盖原全局 .password-toggle 的错误定位） === */
.form-verify .user-icon,
.form-verify .password-toggle {
    position: absolute;
    right: 0.9rem;
    top: auto;
    bottom: 0;
    height: 2.75rem;            /* 与 input 等高，flex 居中 */
    display: flex;
    align-items: center;
    color: rgba(232, 238, 247, 0.55);
    font-size: 0.95rem;
    pointer-events: none;
}

.form-verify .password-toggle {
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.form-verify .password-toggle:hover { color: var(--primary); }

/* === 提交按钮 === */
.login-form button[type="submit"] {
    width: 100%;
    height: 2.75rem;
    margin-top: 0.75rem;
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.login-form button[type="submit"]:hover {
    background: #ffd24d;
    box-shadow: 0 6px 18px rgba(255, 191, 0, 0.35);
    transform: translateY(-1px);
}

.login-form button[type="submit"]:active { transform: translateY(0); }

/* === 面板内的错误提示，紧凑显示 === */
.login-panel .error-message {
    color: var(--error-color);
    font-size: 0.78rem;
    margin: -0.25rem 0 0.4rem 0.125rem;
}

.troubles-login {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    width: 100%;
}

.here-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.here-link:hover {
    color: #ffd24d;
    text-decoration: underline;
}

.line-login {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    width: 100%;
}

.line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header2-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.header2-login p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.btn-register {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 5px 15px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-register:hover {
    background: var(--primary);
    color: var(--text-dark);
    transform: translateY(-2px);
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 191, 0, 0.3);
}

/* === Footer：状态型工程条 === */
.footer-login {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.65rem 2rem;
    background: rgba(8, 14, 28, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    color: var(--text-muted);
    z-index: 10;
}

.footer-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* 状态徽标 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    background: rgba(46, 184, 46, 0.1);
    border: 1px solid rgba(46, 184, 46, 0.35);
    border-radius: 999px;
    color: #6ee06e;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); }
    50%      { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0); }
}

/* 降级 */
.status-indicator.is-degraded {
    background: rgba(255, 191, 0, 0.1);
    border-color: rgba(255, 191, 0, 0.4);
    color: #ffd24d;
}
.status-indicator.is-degraded .status-dot {
    background: var(--primary);
    animation-name: status-pulse-warn;
}
@keyframes status-pulse-warn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.55); }
    50%      { box-shadow: 0 0 0 4px rgba(255, 191, 0, 0); }
}

/* 离线 */
.status-indicator.is-down {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff7565;
}
.status-indicator.is-down .status-dot {
    background: var(--error-color);
    animation-name: status-pulse-err;
}
@keyframes status-pulse-err {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); }
    50%      { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0); }
}

/* 元信息 */
.footer-meta {
    color: var(--text-muted);
    opacity: 0.75;
}

.footer-meta-mono {
    font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    opacity: 0.72;
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.3;
}

/* 小屏堆叠 */
@media (max-width: 768px) {
    .footer-login {
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.85rem 1rem;
        text-align: center;
    }
    .footer-group {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.footer-login-others {
    display: flex;
    width: 100%;
    position: relative;
    bottom: -20rem;
    left: 0;
    margin-top: 5rem;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 12rem 0;
    padding: 0 1rem 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.auth-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    text-align: center;
    padding: 1rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

.option-cards {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.option-card {
    flex: 1;
    width: 100%;
    padding: 2rem;
    background: var(--menu-bg);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 191, 0, 0.2);
}

.option-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.option-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.option-card p {
    color: var(--text-light);
}

.verify-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 8rem 0 12rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.verify-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0rem;
    border-bottom: 2px solid var(--primary);
    text-align: center;
    padding: 1rem;
    font-size: 2.5rem;
    color: var(--text-light);
}

.verify-form {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    width: 100%;
    padding: 2rem;
    background: var(--menu-bg);
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
}

.form-group-verify {
    position: relative;
    margin-bottom: 18px;
    padding: 10px;
}

.password-strength {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 10px;
    background: #eee;
    border-radius: 3px;
    display: none;
}

.password-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.password-strength-weak {
    background: #ff4d4d;
    width: 33%;
}

.password-strength-medium {
    background: #ffa64d;
    width: 66%;
}

.password-strength-strong {
    background: #2eb82e;
    width: 100%;
}

.password-requirements {
    margin-top: 5px;
    font-size: 15px;
    color: #aba7a7;
    display: none;
}

.password-toggle {
    position: absolute;
    right: 25px;
    top: 58px;
    font-size: large;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.requirement {
    margin: 2px 0;
}

.requirement.met {
    color: #2eb82e;
}

.btn-container-verify {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    margin-right: 10px;
}

.btn-submit-verify {
    background-color: #FFBF00ae;
    color: var(--text-light);
}

.btn-submit-verify:hover {
    background-color: var(--primary);
}

.checkbox-group {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    margin: 1.25rem 0;
}

.checkbox-group input {
    width: auto;
    margin-top: .3125rem;
}

/* 隐藏原生复选框 */
.checkbox-group input[type="checkbox"] {
    display: none;
}

/* 自定义复选框样式 */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: .3125rem 0;
}

/* 自定义复选框外观 */
.checkbox-group label::before {
    content: '';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #bdc3c7;
    margin-right: 1rem;
    transition: all 0.3s ease;
    background: var(--menu-bg);
}

/* 选中状态下的样式 */
.checkbox-group input[type="checkbox"]:checked + label::before {
    background-color: var(--primary); /* 默认背景色 */
    border-color: var(--primary);
}

/* 对勾图标 - 使用伪元素创建 */
.checkbox-group input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 10px;
    width: 7px;
    height: 13px;
    border: solid var(--text-light); /* 默认对勾颜色 */
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-left: 6px;
}

/* 悬停效果 */
.checkbox-group label:hover::before {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.5);
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    max-width: 1200px;
    margin: 8rem 0 12rem 0;
    padding: 2rem;
}

.form-container h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 2.5rem;
    padding-bottom: 15px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    width: 90%;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #ddd;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    background-color: #3498db;
    z-index: 1;
    transition: width 0.5s ease;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #a7a7a7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 2;
}

.step.active {
    background-color: var(--primary);
}

.step-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: lighter;
    color: var(--text-light);
}

.ieRegistrationForm {
    width: 100%;
}

.form-section {
    display: none;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(1, 17, 30, 0.7);
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.form-section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 0 0.5rem .625rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 5px;
    padding: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: var(--text-light);
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s ease;
}

input:focus, select:focus {
    border: 2px solid var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-next {
    background-color: #3498db;
    color: white;
}

.btn-next:hover {
    background-color: #2980b9;
}

.btn-back {
    background-color: #95a5a6;
    color: white;
}

.btn-back:hover {
    background-color: #7f8c8d;
}

.btn-submit {
    background-color: #2ecc71;
    color: white;
}

.btn-submit:hover {
    background-color: #27ae60;
}

.btn-add {
    background: #3498db;
    color: white;
    margin-bottom: 15px;
}

.btn-add:hover {
    background: #2980b9;
}

.review-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.review-label {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.review-value {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.success-message {
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 4rem;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 60%;
}

.success-message h4 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message-V {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 2rem 4rem 4rem 4rem;
    margin: 12rem 0;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.success-message-V h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message-V p {
    font-size: 1.2rem;
}

.success-message-V p1 {
    font-size: 1.3rem;
    margin-bottom: 3rem;
}

.success-message-V p2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.success-message-VV {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 2rem 4rem 4rem 4rem;
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.success-message-VV h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message-VV p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-vs {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 2rem;
    color: var(--text-light);
}

.btn-vs-submit {
    background-color: #FFBF00ae;
    color: var(--text-light);
}

.btn-vs-submit:hover {
    background-color: var(--primary);
}

.success-message-V p3, .success-message-V p4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.success-icon {
    color: var(--success-color);
    font-size: 60px;
    margin-bottom: 0.8rem;
}

.error-icon {
    color: var(--error-color);
    font-size: 60px;
    margin-bottom: 0.8rem;
}

.usertype-indicator {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-login {
        padding: 1rem;
    }
    
    .nav-actions-login {
        margin-top: 1rem;
        margin-left: 0;
    }

    .content-login {
        margin: 10rem 0 5rem 0;
    }

    .header-login h1 {
        font-size: 2.5rem;
    }
    
    .auth-container {
        margin: 10rem 0 5rem 0;
        width: 95%;
        padding: 1rem;
    }

    .auth-tab {
        font-size: 2.2rem;
    }

    .verify-container {
        margin: 10rem 0 5rem 0;
        width: 95%;
        padding: 1rem;
    }
    
    .verify-tab {
        font-size: 1.5rem;
    }
    
    .verify-form {
        padding: 1rem;
    }

    .success-message-V {
        margin: 10rem 0 5rem 0;
        width: 95%;
        padding: 1rem;
    }

    .success-message-V h2 {
        font-size: 1.8rem;
    }

    .success-message-V p {
        font-size: 1rem;
    }

    .form-container {
        margin: 10rem 0 5rem 0;
        width: 95%;
        padding: 1rem;
        max-width: 700px;
    }

    .form-container h2 {
        font-size: 1.8rem;
    }
}

/* =========================================================
 * 移动端登录页：缩小顶部 logo、标题整体下移，避免遮挡 logo
 * ========================================================= */
@media (max-width: 768px) {
    .navbar-login {
        height: 12vh;
        max-height: 100px;
        padding: 0.75rem 1rem;
    }

    .content-login {
        margin: 14rem 0 5rem 0;
    }

    .header-login h1 {
        font-size: 2.2rem;
    }
}

/* =========================================================
 * 移动端登录页（补充）：内容顶部对齐 —— 展开登录表单后内容变高时
 * 不再因 flex 垂直居中而把标题顶到 logo 上
 * ========================================================= */
@media (max-width: 768px) {
    .img-container-login { align-items: flex-start; }
    .content-login { margin: 9rem 0 4rem 0; }
}

/* =========================================================
 * 移动端登录页（再修）：footer 回归文档流、排在全部内容之后
 *   —— 原来 footer 绝对定位贴容器底，会盖住 "No account?" 区域；
 *   表单展开后内容更高，遮挡更严重。改为纵向流式布局后，
 *   内容不足一屏时 footer 仍贴底（margin-top:auto），内容超出
 *   一屏时 footer 老老实实排在最后。
 * ========================================================= */
@media (max-width: 768px) {
    .img-container-login {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .content-login {
        margin: 9rem 0 2.5rem 0;
    }

    .footer-login {
        position: static;
        order: 99;
        margin-top: auto;
    }
}

/* =========================================================
 * 移动端登录页（背景覆盖修复）：外层 .container-login 固定
 * height:100vh 会把 img-container 压缩到一屏，内容溢出到
 * 容器（和背景图）之外露出白底。改为随内容生长，背景图
 * height:100% 即可覆盖全部内容直到 footer。
 * ========================================================= */
@media (max-width: 768px) {
    .container-login {
        height: auto;
        min-height: 100vh;
    }
}
