﻿html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Fondo */
body {
    background: linear-gradient(120deg, #f3f6fb, #e5ecf6);
}

/* 🔥 CONTENEDOR PRINCIPAL REAL */
.main-container {
    height: calc(100vh - 64px); /* AJUSTA EXACTO A TU NAVBAR */
    overflow: hidden;
    position: relative;
    z-index: 9999;
}

/* 🔥 ROW SIN MARGEN (bootstrap mete overflow) */
.row {
    height: 100%;
    margin: 0;
}

/* Columnas */
.col-lg-6 {
    height: 100%;
}

/* Panel izquierdo */
.brand-panel {
    height: 100%;
    background: url('../img/fondo/Recurso-14CARRERAS.png') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

/* Login centrado */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card */
.login-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 30px;
    width: 100%;
}

/* Inputs */
.form-control {
    height: 48px;
    border-radius: 10px;
}

/* Botón */
.btn-ms {
    background: #2563eb;
    border-radius: 10px;
    height: 48px;
    font-weight: 600;
}

    .btn-ms:hover {
        background: #1e40af;
    }

/* Efectos */
body::before {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    background: #2563eb;
    filter: blur(120px);
    opacity: .15;
    top: 20%;
    left: 10%;
}

body::after {
    content: "";
    position: fixed;
    width: 250px;
    height: 250px;
    background: #22c55e;
    filter: blur(140px);
    opacity: .12;
    bottom: 20%;
    right: 15%;
}

/* 🔥 SOLO permitir scroll en pantallas muy bajas */
@media (max-height: 680px) {
    html, body {
        overflow-y: auto;
    }

    .main-container {
        height: auto;
        min-height: 100vh;
    }
}

.brand-panel {
    position: relative;
    background: url('../img/login-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    /* 🔥 OVERLAY INTELIGENTE (esto es lo que te faltaba) */
    .brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        /* oscuro solo donde está el texto */
        background: linear-gradient( 90deg, rgba(10, 25, 47, 0.88) 0%, rgba(10, 25, 47, 0.75) 35%, rgba(10, 25, 47, 0.35) 65%, rgba(10, 25, 47, 0.05) 85%, transparent 100% );
        z-index: 1;
    }

/* CONTENIDO ENCIMA */
.brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    color: #fff;
}

/* TITULO */
.brand-title {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 1px;
    /* sombra elegante (no exagerada) */
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

/* SUBTITULO */
.brand-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
}

/* LISTA */
.brand-features {
    list-style: none;
    padding: 0;
}

    .brand-features li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 8px;
        font-size: 14px;
        color: rgba(255,255,255,0.9);
    }

        /* BULLETS MODERNOS */
        .brand-features li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 7px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #3b82f6;
            box-shadow: 0 0 8px rgba(59,130,246,0.6);
        }

.brand-panel::before {
    backdrop-filter: blur(2px);
}