/* login.css - 登录页面特定样式 */

/* 覆盖 body 为居中布局 */
body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(30px, 6vw, 40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    animation: slideGradient 3s ease-in-out infinite;
}

@keyframes slideGradient {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

h1 {
    text-align: center;
    margin-bottom: clamp(25px, 5vw, 30px);
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* 覆盖 form-group 样式 */
.form-group {
    margin-bottom: clamp(18px, 4vw, 20px);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

input {
    width: 100%;
    padding: clamp(10px, 2.5vw, 12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

input::placeholder {
    color: var(--text-secondary);
}

/* 覆盖 btn 样式 */
.btn {
    width: 100%;
    padding: clamp(12px, 3vw, 14px);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.error {
    color: var(--danger);
    margin-top: 12px;
    text-align: center;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    min-height: 20px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }
}
