/* ============================================================
   LOGIN PERSONALIZADO (sin Tailwind)
   ============================================================ */
.auth-body {
    background: #020617;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Fondo */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.login-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(15,23,42,0.4), rgba(0,0,0,0.5));
}

.login-bg-overlay2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
}

/* Layout */
.login-layout {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    max-width: 1720px;
    margin: 0 auto;
}

.login-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: center;
    margin: auto 0;
    width: 100%;
}

/* Hero */
.login-hero { display: flex; flex-direction: column; justify-content: center; user-select: none; }

.login-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: #93c5fd;
}

.login-hero-tag-sep { width: 32px; height: 1px; background: rgba(96,165,250,0.4); }
.login-hero-tag-sub { color: #cbd5e1; font-weight: 300; letter-spacing: 0.1em; }

.login-hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    min-height: 1.9em;
}

.login-cursor {
    display: inline-block;
    width: 0.15em;
    height: 0.72em;
    background: #60a5fa;
    margin-left: 6px;
    vertical-align: baseline;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.login-hero-subtitle {
    margin-top: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    max-width: 36rem;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.login-hero-desc {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 300;
    max-width: 32rem;
    line-height: 1.6;
}

.login-hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #94a3b8;
}

.login-hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-hero-badge svg { color: #60a5fa; flex-shrink: 0; }

/* Card glass */
.login-card-wrap { display: flex; justify-content: flex-end; }

.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
    border-radius: 32px;
    padding: 2.25rem;
    width: 100%;
    max-width: 440px;
    color: #fff;
}

.glass-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.glass-card-logo { height: 80px; width: auto; object-fit: contain; border-radius: 8px; margin-bottom: 12px; }
.glass-card-subtitle { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: #cbd5e1; text-align: center; }

/* Inputs */
.login-label { display: block; font-size: 0.75rem; font-weight: 600; color: #e2e8f0; letter-spacing: 0.05em; margin-bottom: 6px; }

.clean-input {
    width: 100%;
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.clean-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.3) !important;
}

.clean-input::placeholder { color: #94a3b8; }

.input-wrap { position: relative; }

.input-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.input-toggle-btn:hover { color: #475569; }

/* Form extras */
.login-form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    margin: 8px 0 4px;
}

.login-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #cbd5e1; }
.login-remember input { width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; }
.login-forgot { color: #cbd5e1; text-decoration: none; transition: color 0.15s; }
.login-forgot:hover { color: #fff; text-decoration: underline; }

/* Submit */
.login-submit {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    margin-top: 8px;
    font-family: inherit;
}

.login-submit:hover { background: #1d4ed8; }
.login-submit:active { transform: scale(0.99); }

/* Divider */
.login-divider { position: relative; text-align: center; margin: 24px 0; }
.login-divider::before { content: ''; position: absolute; inset: 0; display: flex; align-items: center; }
.login-divider::before { border-top: 1px solid rgba(255,255,255,0.15); top: 50%; }

/* Support */
.login-support { text-align: center; font-size: 0.75rem; color: #94a3b8; margin-top: 24px; }
.login-support a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.login-support a:hover { color: #93c5fd; }

/* Alert error */
.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fecaca;
    border: 1px solid rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.1);
    margin-bottom: 20px;
}

/* Footer */
.login-footer {
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

.login-footer-links { display: flex; align-items: center; gap: 20px; }
.login-footer-links a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.login-footer-links a:hover { color: #e2e8f0; }

/* Formulario espaciado */
.login-field { margin-bottom: 16px; }