* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    background: #fff;
}

/* ── Contenedor principal ── */
.wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ══════════════════════════
    PANEL IZQUIERDO — AZUL (con ola curva)
══════════════════════════ */
.left-panel {
    width: 52%;
    background: linear-gradient(160deg, #1356b5 0%, #1e78d4 55%, #3a9ee8 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Estrellas / puntos de luz sutiles */
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 55px 55px, 27px 27px;
    background-position: 0 0, 13px 13px;
}

/* Ola curva superpuesta (sin nubes) */
.wave-divider {
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 250px;
    z-index: 10;
    pointer-events: none;
}

.wave-divider svg {
    height: 100%;
    width: 100%;
    fill: white;
}

/* ── Contenido izquierdo ── */
.left-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    padding: 40px 60px 40px 40px;
    max-width: 420px;
    width: 100%;
}

/* LOGO MÁS GRANDE */
.logo-circle {
    width: 240px;  /* Aumentado de 110px a 240px */
    height: 240px; /* Aumentado de 110px a 240px */
    background: rgba(255,255,255,.15);
    border: 4px solid rgba(255,255,255,.4); /* Borde ligeramente más grueso */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    backdrop-filter: blur(4px);
    animation: pulse 3s ease-in-out infinite;
}

.logo-circle img {
    width: 200px;   /* Aumentado de 68px a 90px */
    height: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.2); }
    50%      { box-shadow: 0 0 0 22px rgba(255,255,255,0); } /* Sombra más grande */
}

.brand-name {
    font-family: 'Nunito', sans-serif;
    font-size: 52px; /* Aumentado de 48px a 52px */
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.brand-tagline {
    font-size: 21px; /* Aumentado de 15px a 16px */
    opacity: .85;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
}

.welcome-text {
    font-family: 'Nunito', sans-serif;
    font-size: 30px; /* Aumentado de 28px a 30px */
    font-weight: 800;
    margin-bottom: 14px;
}

.desc-text {
    font-size: 14.5px; /* Aumentado de 13.5px a 14.5px */
    opacity: .8;
    line-height: 1.7;
}

/* ══════════════════════════
    PANEL DERECHO — BLANCO
══════════════════════════ */
.right-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #1a2b4a;
    margin-bottom: 6px;
}

.login-sub {
    font-size: 14px;
    color: #7a8fa6;
    margin-bottom: 34px;
}

/* Inputs con línea inferior */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #3a5068;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 10px 36px 10px 0;
    border: none;
    border-bottom: 2px solid #dde5ef;
    background: transparent;
    font-size: 15px;
    color: #1a2b4a;
    outline: none;
    transition: border-color .3s;
    font-family: 'DM Sans', sans-serif;
}

.form-control:focus {
    border-bottom-color: #1e78d4;
}

.form-control::placeholder {
    color: #b0bec8;
    font-size: 14px;
}

/* Botón de toggle contraseña con Font Awesome */
.pass-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #b0bec8;
    padding: 0;
    transition: color .2s;
}

.pass-toggle:hover {
    color: #1e78d4;
}

/* Botón principal */
.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1356b5, #2785e0);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: .3px;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(30,120,212,.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30,120,212,.45);
}

.btn-login:active {
    transform: translateY(0);
}

/* Separador */
.sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #b0bec8;
    font-size: 13px;
}
.sep::before,
.sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8eef4;
}

/* Botón admisiones */
.btn-admision {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid #d0dcec;
    border-radius: 50px;
    color: #1356b5;
    font-size: 14.5px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s;
}

.btn-admision:hover {
    border-color: #1e78d4;
    background: #f0f7ff;
    color: #1356b5;
}

/* Footer */
.footer-dev {
    margin-top: 30px;
    text-align: center;
}

.footer-dev p {
    font-size: 12px;
    color: #b0bec8;
    margin-bottom: 10px;
}

.social-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.soc-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f5fb;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    color: #3a5068;
    cursor: pointer;
    transition: all .25s;
}

.soc-btn:hover {
    background: #1e78d4;
    color: #fff;
    transform: translateY(-2px);
}

/* ══════════════════════════
    RESPONSIVE MEJORADO
══════════════════════════ */
@media (max-width: 820px) {
    body {
        overflow: auto; /* Permitir scroll */
    }
    
    .wrapper { 
        flex-direction: column; 
        height: auto;
        min-height: 100vh;
    }
    
    .left-panel { 
        width: 100%; 
        min-height: 380px; /* Altura fija para el panel azul */
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    
    .wave-divider { 
        display: none; /* Ocultar ola en móvil */
    }
    
    .left-content {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    /* Logo un poco más pequeño en móvil pero aún visible */
    .logo-circle {
        width: 110px;
        height: 110px;
        margin-bottom: 15px;
    }
    
    .logo-circle img {
        width: 70px;
    }
    
    .brand-name {
        font-size: 42px;
    }
    
    .brand-tagline {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .welcome-text {
        font-size: 24px;
    }
    
    .desc-text {
        font-size: 13px;
    }
    
    .right-panel { 
        padding: 40px 24px; /* Más padding superior/inferior */
        min-height: auto;
        flex: none;
    }
    
    .login-card {
        max-width: 100%;
    }
}

/* Para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .left-panel {
        min-height: 350px;
    }
    
    .left-content {
        padding: 20px 15px;
    }
    
    .logo-circle {
        width: 90px;
        height: 90px;
    }
    
    .logo-circle img {
        width: 55px;
    }
    
    .brand-name {
        font-size: 36px;
    }
    
    .brand-tagline {
        font-size: 13px;
    }
    
    .welcome-text {
        font-size: 22px;
    }
    
    .right-panel {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
}