/*
============================================================
SISTEMA DE CALIFICACIÓN DE BANDAS
LOGIN — VERSIÓN INSTITUCIONAL 6.0

Identidad temática del lanzamiento:
Institución Educativa Técnica Industrial Juan Federico Hollmann
Concurso de Bandas
MARCHANDO CON ARMONÍA POR LA PAZ DE COLOMBIA

SOLO PRESENTACIÓN VISUAL.
No modifica autenticación, sesiones, roles, consultas,
base de datos ni lógica funcional.
============================================================
*/

:root {
    --inst-green-deep: #1F3B0E;
    --inst-green: #6BAD25;
    --inst-green-soft: #3F7415;
    --inst-gold: #E3B73D;
    --inst-gold-dark: #885B1A;
    --inst-gold-light: #F2D477;
    --inst-cream: #F4F7EE;
    --inst-white: #FFFFFF;
    --inst-silver: #BFBBA6;
    --inst-text: #203014;
    --inst-muted: #65715B;
    --inst-border: #D9E3D0;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--inst-green-deep);
    color: var(--inst-text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: 56% 44%;
    overflow: hidden;
    background: var(--inst-green-deep);
}

/* ============================================================
   PANEL INSTITUCIONAL
   ============================================================ */

.login-brand-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 3vh, 40px) clamp(24px, 4vw, 58px);
    isolation: isolate;
    background:
        linear-gradient(120deg,
            rgba(20, 42, 8, .82) 0%,
            rgba(63, 116, 21, .72) 43%,
            rgba(31, 59, 14, .64) 100%),
        url("../img/bandas-fondo-limpio.jpg") center center / cover no-repeat;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 25% 30%, rgba(227,183,61,.14), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(242,212,119,.09), transparent 30%);
    pointer-events: none;
}

.institutional-glow {
    position: absolute;
    z-index: -1;
    width: 65vw;
    height: 65vw;
    max-width: 850px;
    max-height: 850px;
    border-radius: 50%;
    top: 50%;
    left: 43%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(242,212,119,.12);
    box-shadow:
        0 0 0 32px rgba(107,173,37,.045),
        0 0 0 72px rgba(107,173,37,.03);
    pointer-events: none;
}

.brand-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.brand-decoration--top {
    width: 310px;
    height: 310px;
    top: -210px;
    left: -115px;
    border-radius: 50%;
    border: 18px solid rgba(227,183,61,.90);
    box-shadow: 0 0 0 7px rgba(242,212,119,.16);
}

.brand-decoration--bottom {
    width: 520px;
    height: 120px;
    left: -90px;
    bottom: -55px;
    border-top: 5px solid rgba(227,183,61,.92);
    border-radius: 50%;
    transform: rotate(-9deg);
    box-shadow: 0 -8px 0 -5px rgba(242,212,119,.45);
}

.brand-content {
    position: relative;
    z-index: 10;
    width: min(700px, 100%);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.institution-name {
    width: min(620px, 100%);
    margin-bottom: clamp(10px, 1.5vh, 18px);
    color: var(--inst-cream);
    text-transform: uppercase;
    letter-spacing: .105em;
    font-size: clamp(11px, 1.08vw, 14px);
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.institution-name span,
.institution-name strong { display: block; }

.institution-name strong {
    margin-top: 2px;
    color: var(--inst-gold-light);
    font-weight: 800;
    letter-spacing: .13em;
}

.institution-logo-wrap {
    width: min(470px, 78%);
    max-height: min(430px, 50dvh);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 24px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(242,212,119,.72);
    box-shadow:
        0 18px 42px rgba(0,0,0,.26),
        0 0 0 5px rgba(227,183,61,.08);
}

.institution-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(410px, 48dvh);
    object-fit: contain;
}

.event-identity {
    margin-top: clamp(10px, 1.8vh, 20px);
    color: var(--inst-cream);
}

.event-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--inst-gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .28em;
}

.event-identity h2 {
    margin: 0;
    color: var(--inst-white);
    font-size: clamp(28px, 2.8vw, 40px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .045em;
    text-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.event-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    width: min(300px, 70%);
    margin: 9px auto 8px;
}

.event-divider span {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--inst-gold));
}

.event-divider span:last-child {
    background: linear-gradient(90deg, var(--inst-gold), transparent);
}

.event-divider i {
    color: var(--inst-gold);
    font-size: 12px;
}

.event-identity p {
    margin: 0;
    color: var(--inst-gold-light);
    font-size: clamp(11px, 1.05vw, 15px);
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .12em;
}

/* ============================================================
   PANEL DE ACCESO
   ============================================================ */

.login-form-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px clamp(20px, 3vw, 44px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 75% 18%, rgba(227,183,61,.12), transparent 27%),
        linear-gradient(145deg, #4F8A1E 0%, #315F12 48%, #1F3B0E 100%);
}

.login-form-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    top: -300px;
    left: -230px;
    border-radius: 50%;
    border: 1px solid rgba(242,212,119,.15);
    box-shadow:
        0 0 0 28px rgba(107,173,37,.045),
        0 0 0 64px rgba(107,173,37,.03);
}

.panel-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .42;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,.018) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.018) 87.5%, rgba(255,255,255,.018)),
        linear-gradient(150deg, rgba(255,255,255,.018) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.018) 87.5%, rgba(255,255,255,.018));
    background-size: 72px 42px;
    background-position: 0 0, 36px 21px;
    pointer-events: none;
}

.golden-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(107,173,37,.20);
    border-radius: 50%;
    pointer-events: none;
}

.golden-orbit--one {
    width: 410px;
    height: 410px;
    right: -300px;
    top: 9%;
}

.golden-orbit--two {
    width: 580px;
    height: 580px;
    right: -440px;
    top: -2%;
    border-color: rgba(191,187,166,.12);
}

/* ============================================================
   TARJETA
   ============================================================ */

.login-form-card {
    position: relative;
    z-index: 10;
    width: min(470px, 100%);
    max-height: calc(100dvh - 60px);
    overflow: hidden;
    padding: 38px 38px 34px;
    border-radius: 24px;
    background: rgba(255,255,255,.985);
    border: 1px solid rgba(227,183,61,.30);
    box-shadow:
        0 28px 60px rgba(0,0,0,.34),
        0 4px 16px rgba(0,0,0,.14);
}

.login-heading {
    margin-bottom: 28px;
    text-align: center;
}

.login-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.login-heading-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: var(--inst-gold-dark);
    font-size: 30px;
}

.login-heading h1 {
    margin: 0;
    color: var(--inst-green-deep);
    font-size: clamp(28px, 2.4vw, 33px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 11px 0 0;
    color: var(--inst-muted);
    font-size: 15px;
    line-height: 1.4;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    margin-bottom: 17px;
    border: 1px solid #e7c7a2;
    border-radius: 10px;
    background: #fff9ee;
    color: #7c4b13;
    font-size: 12px;
    line-height: 1.4;
}

.login-alert i { flex: 0 0 auto; margin-top: 1px; }

.login-form {
    display: grid;
    gap: 18px;
}

.login-field { width: 100%; }

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 58px;
    border: 1px solid var(--inst-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-input-wrap:focus-within {
    border-color: var(--inst-gold);
    box-shadow: 0 0 0 4px rgba(227,183,61,.12);
}

.login-input-wrap > i:first-child {
    width: 53px;
    flex: 0 0 53px;
    text-align: center;
    color: var(--inst-green);
    font-size: 20px;
}

.login-input-wrap input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 15px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--inst-text);
    font-size: 16px;
}

.login-input-wrap input::placeholder { color: #718067; opacity: 1; }

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

.login-password-toggle {
    position: absolute;
    right: 5px;
    top: 4px;
    width: 47px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #65745B;
}

.login-password-toggle:hover {
    background: #EEF5E7;
    color: var(--inst-gold-dark);
}

.login-password-toggle i { font-size: 19px; }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: -1px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3E5130;
    font-size: 14px;
    cursor: default;
}

.remember-option input {
    width: 19px;
    height: 19px;
    margin: 0;
    accent-color: var(--inst-gold-dark);
}

.password-help {
    color: var(--inst-gold-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: default;
}

.login-submit {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6BAD25 0%, #3F7415 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 9px 20px rgba(31,59,14,.24);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    outline: 2px solid rgba(227,183,61,.22);
    outline-offset: -2px;
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(31,59,14,.30);
}

.login-submit i { font-size: 21px; color: var(--inst-gold-light); }

.login-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 24px 0 19px;
    color: #718067;
    font-size: 13px;
}

.login-divider span { height: 1px; flex: 1; background: #dddcd3; }
.login-divider b { font-weight: 700; }

.login-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #EEF5E7;
    border: 1px solid #D9E6CF;
    color: #3E5130;
    font-size: 13px;
    line-height: 1.42;
}

.login-info-box > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--inst-gold-dark);
    font-size: 20px;
}

.login-info-box p { margin: 0; }

/* ============================================================
   ESCRITORIOS BAJOS
   ============================================================ */

@media (min-width: 901px) and (max-height: 850px) {
    .login-brand-panel { padding-top: 18px; padding-bottom: 18px; }
    .brand-content { width: min(620px, 100%); }
    .institution-name { font-size: 11px; }
    .institution-logo-wrap { width: min(390px, 68%); max-height: 41dvh; }
    .institution-logo { max-height: 39dvh; }
    .event-identity { margin-top: 9px; }
    .event-identity h2 { font-size: 30px; }
    .event-identity p { font-size: 11px; }

    .login-form-panel { padding-top: 20px; padding-bottom: 20px; }
    .login-form-card {
        width: min(450px, 100%);
        padding: 30px 32px 28px;
    }
    .login-heading { margin-bottom: 22px; }
    .login-heading p { margin-top: 8px; font-size: 14px; }
    .login-form { gap: 14px; }
    .login-input-wrap { height: 52px; }
    .login-input-wrap > i:first-child { width: 48px; flex-basis: 48px; font-size: 18px; }
    .login-input-wrap input { font-size: 14px; }
    .login-password-toggle { width: 43px; height: 42px; }
    .remember-option, .password-help { font-size: 13px; }
    .login-submit { min-height: 52px; font-size: 16px; }
    .login-divider { margin: 16px 0 12px; }
    .login-info-box { padding: 11px 13px; font-size: 12px; }
}

/* ============================================================
   TABLET / CELULAR
   ============================================================ */

@media (max-width: 900px) {
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: auto;
        padding: 30px 20px 28px;
    }

    .brand-content { width: min(560px, 100%); }
    .institution-name { font-size: 10px; }
    .institution-logo-wrap { width: min(360px, 76vw); max-height: none; }
    .institution-logo { max-height: none; }

    .login-form-panel {
        min-height: auto;
        padding: 28px 20px 42px;
    }

    .login-form-card {
        width: min(500px, 100%);
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .login-brand-panel { padding: 23px 12px 26px; }
    .institution-name { font-size: 8px; letter-spacing: .08em; }
    .institution-logo-wrap { width: min(315px, 82vw); border-radius: 19px; }
    .event-identity { margin-top: 12px; }
    .event-kicker { font-size: 8px; letter-spacing: .18em; }
    .event-identity h2 { font-size: 24px; }
    .event-identity p { font-size: 10px; letter-spacing: .07em; }

    .login-form-panel { padding: 18px 10px 32px; }
    .login-form-card { padding: 27px 18px 23px; border-radius: 20px; }

    .login-heading-title { gap: 9px; }
    .login-heading-icon { width: 36px; height: 36px; font-size: 24px; }
    .login-heading h1 { font-size: 26px; }
    .login-heading p { font-size: 13px; }

    .login-form { gap: 14px; }
    .login-input-wrap { height: 54px; }
    .login-input-wrap > i:first-child { width: 47px; flex-basis: 47px; font-size: 18px; }
    .login-input-wrap input { font-size: 15px; }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .password-help { align-self: flex-end; }
    .login-submit { min-height: 55px; font-size: 17px; }
    .login-info-box { font-size: 12px; }
}
