/* =========================================================
   LOGIN SPLIT LAYOUT — Colegio Los Portales
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* ── SPLIT CONTAINER ── */
.login-split {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */
.login-left {
    width: 52%;
    background: #04454D;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

/* Círculos decorativos */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: #04BA71;
}
.deco-1 { width: 420px; height: 420px; top: -120px; right: -100px; }
.deco-2 { width: 280px; height: 280px; bottom: 60px; left: -80px; opacity: 0.08; }
.deco-3 { width: 160px; height: 160px; top: 50%; right: 40px; opacity: 0.07; background: #FDC827; }

/* Contenido interior */
.login-left-inner {
    position: relative;
    z-index: 2;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

/* Brand */
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    top: 48px;
    left: 56px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: contain;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* Hero */
.login-hero {
    margin-top: 60px;
}

.login-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.login-hero h1 span {
    color: #04BA71;
}

.login-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    max-width: 400px;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(4, 186, 113, 0.25);
    color: #04BA71;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Footer izquierdo */
.login-left-footer {
    position: relative;
    z-index: 2;
    padding: 20px 56px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================================================
   PANEL DERECHO
   ========================================================= */
.login-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    overflow-y: auto;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
    animation: fadeUp 0.55s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Form header */
.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #04454D;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Alert */
.login-alert {
    background: #fde8e6;
    border: 1px solid #FF5A4D;
    color: #7a1f18;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

/* Fields */
.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #04454D;
    margin-bottom: 7px;
}

.field-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d9da;
    border-radius: 10px;
    font-size: 14.5px;
    color: #1a2e35;
    background: #f7fbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.field-group input:hover { border-color: #04BA71; }

.field-group input:focus {
    border-color: #04BA71;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 186, 113, 0.18);
}

/* Password with eye button */
.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.eye-btn:hover { color: #04454D; }

/* Login button */
.btn-login {
    width: 100%;
    padding: 13px;
    background: #04BA71;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 6px 18px rgba(4, 186, 113, 0.38);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.btn-login:hover {
    background: #039960;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4, 186, 113, 0.48);
}

.btn-login:active { transform: scale(0.98); }

/* Form footer link */
.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    font-size: 13.5px;
    font-weight: 600;
    color: #04454D;
    text-decoration: none;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #04BA71;
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .login-left { width: 45%; }
    .login-left-inner { padding: 48px 36px; }
    .login-brand { left: 36px; top: 36px; }
    .login-left-footer { padding: 20px 36px; }
    .login-hero h1 { font-size: 30px; }
    .login-right { padding: 32px 28px; }
}

@media (max-width: 700px) {
    body { overflow-y: auto; }
    .login-split { flex-direction: column; height: auto; min-height: 100vh; }
    .login-left {
        width: 100%;
        padding: 36px 28px 28px;
        min-height: 260px;
    }
    .login-left-inner { padding: 0; margin-top: 32px; gap: 20px; justify-content: flex-start; }
    .login-brand { position: relative; top: auto; left: auto; margin-bottom: 4px; }
    .login-hero h1 { font-size: 26px; }
    .feature-list { display: none; }
    .login-right { padding: 32px 24px; }
    .login-form-wrap { max-width: 100%; }
}
