﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores base */
    --ico-blue: #2B89D8;
    --ico-aqua: #04A29A;
    /* Primario (derivado del blue, un poco más profundo) */
    --ico-primary: #1F6FB2;
    /* Variantes del aqua */
    --ico-teal: #1BB8AD; /* más suave que el aqua puro */
    --ico-teal-light: #E0F7F5; /* fondo muy claro */
    /* Neutros */
    --ico-white: #FFFFFF;
    --ico-light: #EDF5FB; /* fondo azulado muy suave */
    --ico-surface: #F6FAFD;
    /* Texto */
    --ico-text: #0F2233; /* más legible sobre blanco */
    --ico-muted: #6B7C8F;
    /* Bordes */
    --ico-border: #D4E3F1;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ico-surface);
    min-height: 100vh;
}

.login-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* LEFT PANEL */
.left-panel {
    background: var(--ico-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.teal-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ico-teal) 0%, var(--ico-blue) 100%);
}

.circle-1 {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(43, 137, 216, 0.18);
    pointer-events: none;
}

.circle-2 {
    position: absolute;
    bottom: -130px;
    left: -70px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(49, 198, 173, 0.13);
    pointer-events: none;
}

.circle-3 {
    position: absolute;
    top: 40%;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.brand-area {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.logo-mark {
    width: 46px;
    height: 46px;
    background: var(--ico-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .logo-mark svg {
        width: 28px;
        height: 28px;
    }

.brand-logo img {
    width: 420px;
    margin:auto;
    margin-top:1.5rem;
    height: auto;
}

.brand-name {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.85rem;
    text-align:center;
    margin-top: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
}

.brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    display: block;
    margin-top: 3px;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(49, 198, 173, 0.15);
    border: 1px solid rgba(49, 198, 173, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 1.5rem;
}

    .hero-tag span {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.77rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

.hero-dot {
    width: 7px;
    height: 7px;
    background: var(--ico-teal);
    border-radius: 50%;
    animation: pdot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pdot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.hero-h {
    font-family: 'Fraunces', serif;
    color: var(--ico-white);
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

    .hero-h em {
        font-style: italic;
        color: #90CAF9;
    }

.hero-p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 340px;
}

.stats-row {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    flex: 1;
    min-width: 90px;
}

.stat-n {
    color: var(--ico-white);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1;
}

.stat-l {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    margin-top: 5px;
    letter-spacing: 0.2px;
}

/* RIGHT PANEL */
.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--ico-white);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 2.25rem;
}

.login-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ico-blue);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.login-title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--ico-text);
    line-height: 1.2;
}

    .login-title strong {
        font-weight: 600;
        color: var(--ico-primary);
    }

        .login-title strong span {
            font-weight: 600;
            color: var(--ico-aqua);
        }

.login-desc {
    color: var(--ico-muted);
    font-size: 0.87rem;
    margin-top: 0.6rem;
    line-height: 1.65;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ico-white);
    border: 1.5px solid var(--ico-border);
    border-radius: 10px;
    padding: 13px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ico-text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

    .google-btn:hover {
        border-color: var(--ico-blue);
        background: var(--ico-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(1, 85, 175, 0.12);
    }

    .google-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--ico-teal-light);
    border: 1px solid rgba(49, 198, 173, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
}

    .notice p {
        font-size: 0.76rem;
        color: #1a5c54;
        line-height: 1.55;
    }

    .notice strong {
        color: #0d4740;
        font-weight: 600;
    }

.login-footer {
    padding-top: 1.4rem;
    border-top: 1px solid var(--ico-border);
    text-align: center;
}

    .login-footer p {
        font-size: 0.78rem;
        color: var(--ico-muted);
        line-height: 1.65;
    }

    .login-footer strong {
        color: var(--ico-text);
        font-weight: 600;
    }

/* ── Separador ── */
.login-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #8A9AB0;
    font-size: 0.75rem;
    font-family: 'DM Sans', sans-serif;
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2EBF3;
}

/* ── Formulario local ── */
.local-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.local-campo label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #3D5068;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.35rem;
    font-family: 'DM Sans', sans-serif;
}

.local-campo .input-wrap {
    position: relative;
}

    .local-campo .input-wrap svg {
        position: absolute;
        left: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        stroke: #8A9AB0;
        fill: none;
        stroke-width: 2;
        pointer-events: none;
    }

.local-campo input {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.5rem;
    border: 1.5px solid #D6E4F0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #0D1B2A;
    background: #F7FAFD;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

    .local-campo input:focus {
        border-color: #31C6AD;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(49, 198, 173, 0.12);
    }

/* Toggle contraseña */
.pwd-wrap {
    position: relative;
}

.btn-toggle-pwd {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: #8A9AB0;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

    .btn-toggle-pwd:hover {
        color: #31C6AD;
    }

    .btn-toggle-pwd svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        position: static !important;
        transform: none !important;
    }

/* Botón ingresar */
.btn-ingresar {
    width: 100%;
    padding: 0.78rem;
    background: linear-gradient(135deg, #0155AF 0%, #2B89D8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 0.25rem;
}

    .btn-ingresar:hover {
        opacity: 0.9;
    }

    .btn-ingresar:active {
        transform: scale(0.99);
    }

/* Error */
.login-error-msg {
    background: #FEF0F0;
    border: 1px solid #FCCFCF;
    border-radius: 10px;
    color: #C0392B;
    font-size: 0.82rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
}

    .login-error-msg svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
        stroke: #C0392B;
        fill: none;
        stroke-width: 2;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 2rem 1.5rem;
    }
}
