/* ===== style-2.css - 登录页 ===== */

.login-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 48px 48px 48px;  /* 上左右不变，下边距加大 */
}

.login-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.login-icon {
    font-size: 28px;
}
.login-header h1 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-transform: lowercase;
}

.login-form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.input-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}
.input-group input {
    height: 44px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.input-group input:focus {
    border-color: var(--primary-blue-border);
}
.input-group input::placeholder {
    color: var(--text-dim);
}

.login-btn {
    height: 44px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary-blue), #2a5adf);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.login-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 24px var(--primary-blue-glow);
}
.login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-error {
    color: #f87171;
    font-size: 14px;
    text-align: center;
    margin-top: 4px;
    min-height: 24px;
}
.login-form .hint {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    margin-top: -6px;
}

/* ---------- Logo 区域 ---------- */
.login-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.login-logo .logo-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.login-logo img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* ---------- 登录页补充优化 ---------- */
.login-card .login-form {
    margin-bottom: 4px;
}

/* 注册按钮距上方输入框远一点 */
.login-card .login-form .login-btn {
    margin-top: 16px;
}