/* ========================================================
   LOGIN & REGISTRO - UNIFIED HIGH-TECH CYBER-GLASS DESIGN
   Diseño idéntico en Computadoras, Laptops, Tablets y Celulares
======================================================== */

.login-overlay {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 18px;
    background: #040A14 !important;
    position: relative;
    overflow: hidden;
}

/* Destellos de luz y red de fondo Cyber */
.cyber-bg-glow-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 96, 168, 0.45) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.cyber-bg-glow-2 {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.cyber-grid-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

/* Tarjeta de Cristal Esmerilado (Glassmorphism Universal) */
.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(8, 28, 53, 0.74) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 0 25px rgba(2, 132, 199, 0.15) !important;
    padding: 38px 30px !important;
    position: relative;
    z-index: 10;
    animation: fadeUp .35s ease;
}

.login-card.wide-register {
    max-width: 560px;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.cyber-logo-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #013F7B 0%, #0284C7 100%);
    border: 1px solid rgba(56, 189, 248, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 12px;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.38);
}

.cyber-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cyber-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
    animation: pulseDot 2s infinite;
}

.cyber-pulse-dot.emerald {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.login-header h1 {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    color: #FFFFFF !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 6px !important;
}

.login-header p {
    font-family: var(--font-body, 'Inter', sans-serif);
    color: #94A3B8 !important;
    font-size: 0.88rem !important;
    margin-bottom: 0;
    line-height: 1.45;
}

.login-header p strong {
    color: #38BDF8 !important;
}

/* Labels e Inputs Cyber */
.form-label {
    color: #CBD5E1 !important;
    font-family: var(--font-mono, monospace) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyber-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cyber-input-icon {
    position: absolute;
    left: 14px;
    color: #38BDF8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.form-control {
    height: 48px !important;
    background: rgba(4, 14, 28, 0.75) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: 12px !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
    color: #FFFFFF !important;
    font-family: inherit;
    font-size: 0.9rem !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 15px rgba(56, 189, 248, 0.15) !important;
    background: rgba(4, 14, 28, 0.95) !important;
}

.form-control::placeholder {
    color: #475569;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2338bdf8' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px !important;
}

select.form-control option {
    background: #081C35;
    color: #FFFFFF;
}

.cyber-eye-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

.cyber-eye-btn:hover {
    color: #38BDF8;
}

.login-links {
    text-align: right;
    margin-bottom: 20px;
}

.login-links a {
    color: #38BDF8 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: #7DD3FC !important;
    text-decoration: underline;
}

/* Botón Principal Login / Registro */
.btn-login {
    width: 100%;
    height: 50px !important;
    border: 1px solid #38BDF8 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #013F7B 0%, #0284C7 100%) !important;
    color: #FFFFFF !important;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-login:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.6) !important;
    background: linear-gradient(135deg, #0260A8 0%, #38BDF8 100%) !important;
}

.btn-login:active {
    transform: scale(0.98) !important;
}

/* Footer de Enlaces */
.login-footer {
    color: #94A3B8 !important;
    font-size: 0.84rem !important;
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.login-footer a {
    color: #38BDF8 !important;
    font-weight: 700 !important;
    text-decoration: none;
    margin-left: 4px;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* COMPONENTES DE REGISTRO CYBER */
.account-type-switcher {
    background: rgba(4, 14, 27, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    padding: 4px;
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
}

.type-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.type-btn.active {
    background: linear-gradient(135deg, #013F7B 0%, #0260A8 100%);
    color: #FFFFFF;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 12px rgba(1, 63, 123, 0.35);
}

.type-btn.active i {
    color: #38BDF8;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 639.98px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.pass-meter-wrap {
    margin-top: 6px;
}

.pass-bars {
    display: flex;
    gap: 4px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pass-bar-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.pass-strength-label {
    font-size: 0.68rem;
    font-family: var(--font-mono, monospace);
    color: #94A3B8;
    display: flex;
    justify-content: space-between;
}

.cyber-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.45;
}

.cyber-checkbox-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #0284C7;
    cursor: pointer;
}

.cyber-checkbox-wrap a {
    color: #38BDF8;
    text-decoration: none;
    font-weight: 600;
}

.cyber-checkbox-wrap a:hover {
    text-decoration: underline;
}

/* Animación */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
