/* 登录页面样式 */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-container {
    width: 100%;
    max-width: 380px;
    /* Tighter container */
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    .login-container {
        background: rgba(30, 41, 59, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header .icon {
    width: 42px;
    /* Smaller icon */
    height: 42px;
    color: var(--primary);
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(255, 36, 66, 0.3));
}

.login-header h1 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 800;
}

.login-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
}

.btn-block {
    height: 40px;
    font-size: 14px;
    margin-top: 8px;
}

.error {
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 14px;
    min-height: 18px;
    background: var(--danger-light);
    padding: 8px;
    border-radius: var(--radius-md);
    display: none;
    /* Hide by default */
}

.error:not(:empty) {
    display: block;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.login-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}