﻿:root {
    --primary: #2A4D69;
    --accent: #FF6B35;
    --bg: #F1F5F9;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #ffffff;
    --error: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/*body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
}
*/



/* --- LOGO IQUALIA --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-visual {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

.logo-circle {
    position: absolute;
    inset: 0;
    border: 4px solid #3B82F6;
    border-radius: 50%;
    border-top-color: transparent;
    transform: rotate(-45deg);
}

.logo-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2A4D69;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #2A4D69;
    display: flex;
    align-items: baseline;
}

    .logo-text span {
        color: var(--accent);
    }

p.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}



/* --- CONTENEDOR PRINCIPAL --- */
.container-login {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
}


.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}



.logo-container {
    margin-bottom: 30px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: #2A4D69;
    color: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 15px -3px rgba(42, 77, 105, 0.3);
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* --- FORMULARIO --- */
.form-group {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}

#loginForm{
    width: 100%;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper svg {
        position: absolute;
        left: 14px;
        color: var(--text-muted);
        width: 18px;
        height: 18px;
    }

input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

    input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(42, 77, 105, 0.1);
    }

.toggle-password {
    position: absolute;
    right: 50px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* --- BOTONES --- */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #2A4D69;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

    .btn-login:hover {
        background: #1e3a52;
        transform: translateY(-1px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.forgot-password {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #2A4D69;
    text-decoration: none;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* --- SPINNER --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

    .loader-overlay.loader-overlay-active {
        display: flex !important;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(42, 77, 105, 0.1);
        border-left-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .footer-text {
        margin-top: 40px;
        font-size: 0.75rem;
        color: var(--text-muted);
    }
