/* ============================================================
   LOGIN.CSS — Pantalla de inicio de sesion
   Layout de dos paneles: izquierdo (decorativo) y derecho (form)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:wght@400;500&display=swap');


/*Variables de color*/
:root {
    --cyan:      #13c1ac;
    --cyan-dark: #0fa090;
    --cyan-glow: rgba(19, 193, 172, 0.18);
    --dark:      #0f1c26;
    --dark-mid:  #1a2e3b;
    --text-main: #111827;
    --text-mute: #6b7280;
    --bg:        #f0f4f8;
    --white:     #ffffff;
    --border:    #e2e8f0;
    --err:       #e53e3e;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
}


/*Contenedor principal: dos columnas*/
.auth-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
}


/*Panel izquierdo: decorativo con marca*/
.auth-panel-left {
    flex: 0 0 44%;
    background: linear-gradient(145deg, var(--dark) 0%, #16303f 60%, #1a4a4a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

/*Logo dentro del panel izquierdo*/
.auth-brand-logo img {
    height: 60px;
    object-fit: contain;
}

/* Circulos decorativos de fondo*/
.auth-panel-left::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(19,193,172,0.07);
    top: -140px; left: -120px;
}
.auth-panel-left::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19,193,172,0.1) 0%, transparent 70%);
    bottom: 40px; right: -60px;
}
.auth-panel-left .deco-circle {
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 30px solid rgba(19,193,172,0.06);
    bottom: 160px; left: 20px;
}

/*Bloque de marca: logo, slogan, ciudad*/
.auth-brand {
    text-align: center;
    position: relative;
    z-index: 1;
}
.auth-brand-logo {
    font-family: 'Sora', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: -3px;
    line-height: 1;
    text-shadow: 0 0 40px rgba(19,193,172,0.3);
}
.auth-brand-tagline {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    margin-top: 10px;
    letter-spacing: 0.4px;
}
.auth-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(19,193,172,0.1);
    border: 1px solid rgba(19,193,172,0.2);
    border-radius: 50px;
    padding: 6px 16px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 18px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/*Lista de caracteristicas debajo del logo*/
.auth-features {
    margin-top: 52px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}
.auth-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.auth-feat:hover { background: rgba(255,255,255,0.06); }

/*Icono de cada caracteristica*/
.auth-feat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(19,193,172,0.1);
    border: 1px solid rgba(19,193,172,0.18);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    font-size: 0.9rem;
    flex-shrink: 0;
}


/*Panel derecho: formulario de login*/
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: var(--white);
}

.auth-card.login {
    width: 100%;
    max-width: 420px;
}

/*Cabecera del formulario*/
.auth-header { margin-bottom: 32px; }
.auth-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}
.auth-header p {
    color: var(--text-mute);
    font-size: 0.92rem;
    margin-top: 8px;
}


/*Grupos de campo (label + input)*/
.input-group { margin-bottom: 20px; }

.input-group label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/*Contenedor con icono posicionado*/
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

/*Campo de texto*/
.input-group input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
.input-group input:focus {
    outline: none;
    border-color: var(--cyan);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(19,193,172,0.12);
}


/*Boton principal de envío*/
.btn-main {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--cyan) 0%, #0fb89e 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    letter-spacing: 0.3px;
}
.btn-main:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(19,193,172,0.35);
}
.btn-main:active { transform: translateY(0); }


/*Pie del formulario (enlace a registro)*/
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-mute);
}
.auth-footer a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }


/*Alerta de error*/
.alert-error {
    background: #fff5f5;
    color: var(--err);
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    margin-bottom: 20px;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
}


/*Boton para mostrar/ocultar contraseña*/
.btn-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.2s;
    line-height: 1;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
.btn-toggle-pass:hover { color: var(--cyan); }

/*Espacio a la derecha del input para el ojo*/
.input-wrap input[type="password"],
.input-wrap input[type="text"] {
    padding-right: 44px !important;
}

/*Correccion de posicion del icono del ojo*/
#eyeIcon {
    position: absolute;
    left: 2px;
}


/*Header y footer movil del login (ocultos por defecto)*/
.auth-wrapper .login-mobile-header,
.auth-wrapper .login-mobile-footer {
    display: none !important;
}


/*Responsive: tablet grande (≤900px)*/
@media (max-width: 900px) {
    .auth-panel-left { flex: 0 0 40%; padding: 50px 36px; }
    .auth-brand-logo { font-size: 3rem; }
}


/*Responsive: tablet (≤768px),ocultar panel izquierdo*/
@media (max-width: 768px) {
    .auth-panel-left { display: none; }
    .auth-panel-right { padding: 40px 24px; background: var(--bg); }
    .auth-card.login {
        background: white;
        border-radius: 20px;
        padding: 32px 28px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }

    /*Mostrar header y footer moviles*/
    .auth-wrapper .login-mobile-header,
    .auth-wrapper .login-mobile-footer {
        display: flex !important;
    }
    .auth-wrapper {
        flex-direction: column;
        min-height: 100vh;
    }
    .auth-panel-right {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


/*Responsive: moviles pequeños (≤480px)*/
@media (max-width: 480px) {
    .auth-panel-right { padding: 20px 14px; }
    .auth-card.login {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .auth-header h2 { font-size: 1.5rem; }
    .auth-header p { font-size: 0.85rem; }
    .input-group input {
        padding: 13px 44px 13px 42px;
        font-size: 0.95rem;
    }
    .btn-login { padding: 14px; font-size: 1rem; }
    .auth-footer-link { font-size: 0.88rem; }
}


/*Responsive: moviles muy pequeños (≤360px)*/
@media (max-width: 360px) {
    .auth-card.login { padding: 20px 14px; }
    .auth-header h2 { font-size: 1.35rem; }
}

/* Oculta el icono nativo de revelar contraseña en Chrome/Edge/Safari */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}
