/* ========================== VARIABLES Y RESET ========================== */
:root {
    --color-primary: #005696;
    --color-accent-yellow: #efab0b;
    --color-accent-orange: #e15f3a;
    --color-dark: #1a1a2e;
    --color-gray-dark: #2d2d44;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-white: #ffffff;
    --color-bg: #f9fafb;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 86, 150, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(239, 171, 11, 0.08) 0px, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-light);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-dark);
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-gray-light);
    background-color: var(--color-white);
    color: var(--color-dark);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 150, 0.1);
}

button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: var(--shadow);
}

button:hover {
    background-color: #00447a;
    /* Darker shade of primary */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-text {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loading .spinner {
    display: block;
}

.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}