/* ============================================================================
   INDUCOP CRM - LOGIN HERO STYLES (S192 REFINED, tokenizado S193)
   Diseño impecable y profesional para la pantalla de inicio de sesión.
   Consume el genoma (--brand-navy/-cyan/-dark + variantes); alpha via color-mix
   -> un rebrand del genoma alcanza el login (branding-reachable, S190). Neutros
   (slate/blanco) y negros de sombra = decorativo (regla d).
   ============================================================================ */

:root {
    /* Overlay de marca sobre la foto: navy-dark -> cyan del genoma, con alpha via
       color-mix (sigue rebrand; == rgba .88/.85/.65 sobre el fenotipo actual). */
    --login-bg-overlay: linear-gradient(135deg,
        color-mix(in srgb, var(--brand-navy-dark) 88%, transparent) 0%,
        color-mix(in srgb, var(--brand-navy-dark) 85%, transparent) 50%,
        color-mix(in srgb, var(--brand-cyan) 65%, transparent) 100%);
    --login-card-radius: 28px;
}

body.login-page-body {
    background: var(--brand-dark);
    min-height: 100vh;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Base Wrapper */
.login-hero-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--brand-dark);
}

/* Top Hero Header Section */
.login-hero-header {
    position: relative;
    background-image: var(--login-bg-overlay), url('../images/login_hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 3.5rem 1.5rem 5rem;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.login-hero-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--brand-dark), transparent);
    pointer-events: none;
}

/* Translucent Glass Pill Badge for Brand Logo */
.login-logo-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.login-logo-badge:hover {
    transform: scale(1.04);
}

.login-brand-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.login-hero-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.login-hero-subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.9);
    max-width: 440px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Floating Card Container */
.login-card-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1.25rem 3rem;
    margin-top: -3rem;
    z-index: 10;
}

.login-card-main {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: var(--login-card-radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 2.25rem 2rem 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-greeting-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.login-greeting-sub {
    font-size: var(--text-sm);
    color: #64748b;
    margin-bottom: 1.75rem;
}

/* Form Controls with Input Icons */
.input-icon-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon-group .form-control {
    border-radius: 14px;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    font-size: var(--text-base);
    border: 1.5px solid #cbd5e1;
    background-color: #f8fafc;
    color: var(--brand-dark);
    transition: all 0.2s ease-in-out;
}

.input-icon-group .form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-cyan) 18%, transparent);
    outline: none;
}

.input-icon-group .input-lead-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon-group .form-control:focus ~ .input-lead-icon {
    color: var(--brand-navy);
}

/* Pill Button Actions */
.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: var(--text-base);
    padding: 0.9rem 1.5rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-navy) 35%, transparent);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-pill-primary:hover, .btn-pill-primary:focus {
    background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-navy) 45%, transparent);
}

.btn-pill-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-navy) 30%, transparent);
}

/* Boton secundario (pill outline) -- conservado para futura accion secundaria;
   el 'Acceso Administrativo' se retiro del template (rebote /admin/login/, S193). */
.btn-pill-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: var(--text-base);
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid var(--brand-navy);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-top: 0.75rem;
}

.btn-pill-outline:hover, .btn-pill-outline:focus {
    background: color-mix(in srgb, var(--brand-navy) 6%, transparent);
    color: var(--brand-navy-dark);
    border-color: var(--brand-navy-dark);
    transform: translateY(-1px);
}

.login-help-link {
    display: inline-block;
    color: var(--brand-cyan-dark);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    margin-top: 1.25rem;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.login-help-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

.login-footer-text {
    text-align: center;
    color: #94a3b8;
    font-size: var(--text-sm);
    margin-top: 1.5rem;
}

/* Responsive Desktop Enhancements */
@media (min-width: 992px) {
    .login-hero-header {
        min-height: 44vh;
        padding-top: 4rem;
    }

    .login-card-main {
        max-width: 460px;
        padding: 2.75rem 2.5rem 2.25rem;
    }

    .login-hero-title {
        font-size: var(--text-4xl);
    }
}
