/* ==========================================
   VARIABLES DE TEMA
========================================== */

:root {
    --login-bg: #050816;
    --card-bg: rgba(15,23,42,.85);
    --card-border: rgba(59,130,246,.15);
    --title-color: #ffffff;
    --subtitle-color: #94a3b8;
    --label-color: #cbd5e1;
    --input-bg: #111827;
    --input-border: #1f2937;
    --input-text: #ffffff;
    --btn-bg: rgba(37,99,235,.85);
    --btn-hover: rgba(37,99,235,1);
    --switch-bg: #1e293b;
    --switch-shadow: rgba(0,0,0,.3);
}

[data-theme="light"] {
    --login-bg: #f1f5f9;
    --card-bg: rgba(255,255,255,.95);
    --card-border: #dbe2ea;
    --title-color: #0f172a;
    --subtitle-color: #64748b;
    --label-color: #334155;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    --btn-bg: #2563eb;
    --btn-hover: #1d4ed8;
    --switch-bg: #ffffff;
    --switch-shadow: rgba(0,0,0,.15);
}

/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   BODY
========================================== */

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--login-bg);
    transition: all .3s ease;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   CARD LOGIN
========================================== */

.login-card {
    position: relative;
    width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 30px rgba(59,130,246,.08), 0 20px 50px rgba(0,0,0,.25);
    transition: all .3s ease;
}

/* ==========================================
   SWITCH TEMA
========================================== */

.theme-switch {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--switch-bg);
    box-shadow: 0 5px 15px var(--switch-shadow);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    transition: .3s ease;
}

    .theme-switch i {
        position: absolute;
        font-size: 0.9rem;
        transition: transform .35s ease;
    }

        /* Sol */

        .theme-switch i:first-child {
            color: #f59e0b;
            transform: translateY(0);
        }

        /* Luna */

        .theme-switch i:last-child {
            color: #4f46e5;
            transform: translateY(200%);
        }

    /* Tema oscuro */

    .theme-switch.dark i:first-child {
        transform: translateY(-200%);
    }

    .theme-switch.dark i:last-child {
        transform: translateY(0);
    }

/* ==========================================
   LOGO
========================================== */

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* ==========================================
   TITULOS
========================================== */

.login-card h1 {
    text-align: center;
    color: var(--title-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: var(--subtitle-color);
    margin-bottom: 25px;
}

/* ==========================================
   INPUTS
========================================== */

.input-group-custom {
    margin-bottom: 18px;
}

    .input-group-custom label {
        display: block;
        margin-bottom: 8px;
        color: var(--label-color);
        font-size: 14px;
    }

.custom-input {
    width: 100%;
    height: 50px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0 15px;
    color: var(--input-text);
    outline: none;
    transition: .3s;
}

    .custom-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,.15);
    }

/* ==========================================
   RECORDARME
========================================== */

.remember-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--label-color);
}

/* ==========================================
   BOTON LOGIN
========================================== */

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    background: var(--btn-bg);
    transition: .3s;
}

    .btn-login:hover {
        background: var(--btn-hover);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(59,130,246,.25);
    }

/* ==========================================
   VALIDACIONES
========================================== */

.text-danger {
    color: #ef4444;
    font-size: 12px;
}

.validation-summary {
    margin-bottom: 15px;
}
