:root {
    --primary: #1a4a9e; /* Main site's primary color */
    --primary-dark: #0d3a7e; /* Main site's primary-dark */
    --secondary: #ff9f1c; /* Main site's secondary color */
    --secondary-dark: #e68a00; /* Main site's secondary-dark */
    --light: #f8f9fa; /* Main site's light */
    --dark: #171f27; /* Main site's dark */
    --accent: #e63946; /* Main site's accent */
    --text-secondary: #495057; /* Main site's dark-gray */
    --border-color: #dee2e6; /* Main site's lighter-gray */
    --success: #2a9d8f; /* Main site's success */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a4a9e 0%, #0d3a7e 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-header i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    background: var(--light);
    color: var(--dark);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 74, 158, 0.15);
    background: white;
}

.btn-login {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 74, 158, 0.25);
}

.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: #ffe6e8;
    color: #c1121f;
    border: 1px solid #ffb3b8;
}

.alert-success {
    background: #e6f7f5;
    color: #1d7a6f;
    border: 1px solid #9ae6b4;
}

.back-home {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--primary);
}
