/* /login/login.css - 链之元登录系统统一样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: radial-gradient(ellipse at 30% 20%, #1A3A6B 0%, #0B1A33 60%, #040D1A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* 星空背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(215, 168, 67, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================ */
/* 认证卡片容器 */
/* ============================================================ */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================================ */
/* 头部 */
/* ============================================================ */
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid rgba(215, 168, 67, 0.3);
    box-shadow: 0 0 30px rgba(215, 168, 67, 0.2);
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #F5E6C8 0%, #D4A843 40%, #F5E6C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
}

.auth-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    letter-spacing: 2px;
}

/* ============================================================ */
/* 表单 */
/* ============================================================ */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.auth-form input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(215, 168, 67, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(215, 168, 67, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================ */
/* 按钮 */
/* ============================================================ */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #008000, #FB9749);
    border: none;
    border-radius: 40px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 3px;
    transition: all 0.3s;
    margin-top: 4px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 128, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================ */
/* 链接 */
/* ============================================================ */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
}

.auth-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #D4A843;
}

/* ============================================================ */
/* 页脚 */
/* ============================================================ */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

.policy-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.policy-link:hover {
    color: #D4A843;
}

/* ============================================================ */
/* 提示消息 */
/* ============================================================ */
.error-msg {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.error-msg.show { display: block; }

.success-msg {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #22c55e;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.success-msg.show { display: block; }

/* ============================================================ */
/* 响应式 */
/* ============================================================ */
@media (max-width: 480px) {
    body { padding: 10px; }
    .auth-container {
        padding: 24px 18px;
        border-radius: 18px;
        max-width: 100%;
    }
    .auth-header .logo { width: 50px; height: 50px; }
    .auth-header h2 { font-size: 20px; letter-spacing: 4px; }
    .auth-form input { padding: 11px 14px; font-size: 14px; }
    .btn-primary { padding: 12px; font-size: 15px; }
}