/*
 * Custom Wagtail Admin Login Page
 * Burgundy & Gold Theme - Spanish
 */

:root {
    --color-burgundy: #6A2C2E;
    --color-burgundy-light: #8B4548;
    --color-burgundy-dark: #4A1F21;
    --color-gold: #D9BF77;
    --color-gold-dark: #B89F5F;
    --color-cream: #F0E5D8;
    --color-cream-light: #FAF7F2;
    --color-cream-lighter: #FAF7F2;
    --color-text-dark: #2C2C2C;
    --color-text-light: #F5EDE2;
    --color-error: #D32F2F;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.wagtail-login-page {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-burgundy-dark) 0%, var(--color-burgundy) 50%, var(--color-burgundy-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--color-text-dark);
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease-out;
}

.login-container {
    width: 100%;
}

.login-card {
    background: var(--color-cream-lighter);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    max-height: 80px;
    width: auto;
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-burgundy);
    margin: 0 0 0.5rem;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    opacity: 0.7;
    line-height: 1.5;
}

/* Messages / Alerts */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-error {
    background: #FEE;
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Form Styles */
.login-form {
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.form-icon {
    width: 18px;
    height: 18px;
    color: var(--color-burgundy);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all var(--transition);
    background: var(--color-cream-light);
    color: var(--color-text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 3px rgba(106, 44, 46, 0.1);
}

.field-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-error);
}

.form-actions-secondary {
    text-align: right;
    margin-bottom: 1.5rem;
}

.password-reset-link {
    font-size: 0.9rem;
    color: var(--color-burgundy);
    text-decoration: none;
    transition: color var(--transition);
}

.password-reset-link:hover {
    color: var(--color-burgundy-light);
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-text-light);
    background: var(--color-burgundy);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: var(--color-burgundy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 44, 46, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 20px;
    height: 20px;
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    opacity: 0.6;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.login-button:focus,
input:focus,
a:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}


