:root {
    --primary: #002FA7;
    --primary-light: #2A4DB7;
    --secondary: #ff6b6b;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    /*background: linear-gradient(135deg, #1e3c72, #2a5298);*/
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--dark);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

.auth-header {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    padding: 25px;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.auth-body {
    padding: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.form-input {
    padding: 14px 16px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.auth-btn {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
}

.auth-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--gray);
    background-color: #f8fafc;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.error-message {
    background: linear-gradient(135deg, #ffecec, #ffd6d6);
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

@media (max-width: 480px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-body {
        padding: 20px;
    }
}