/* =============================================
   estilos.css — Login SisGes
   Lincoln College San Martín
   ============================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* Excepción para librerías de íconos — no tocar su font-family */
.bx,
[class^="bx-"],
[class*=" bx"] {
    font-family: 'boxicons' !important;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/antartica2.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
}

/* ===== CARD ===== */
.wrapper {
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.88);
    /*backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);*/
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 36px 36px 28px;
    position: relative;
    z-index: 1;
    animation: aparecerLogin 0.8s ease;
}

/* ===== HEADER / LOGO ===== */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.logo-wrap img {
    width: 184px;
    height: auto;
}

.colegio-nombre {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a5e;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.colegio-sede {
    font-size: 13px;
    font-weight: 500;
    color: #5a6a8e;
    letter-spacing: 0.5px;
}

.header-divider {
    width: 40px;
    height: 2px;
    background: #1a2a5e;
    margin: 12px auto 10px;
    border-radius: 2px;
}

.sistema-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #8a9ab5;
    text-transform: uppercase;
}

/* ===== ALERTAS ===== */
.alert {
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: aparecer 0.3s ease;
}

.alert-error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.6);
    color: #c62828;
}

.alert-success {
    background: rgba(81, 207, 102, 0.15);
    border: 1px solid rgba(81, 207, 102, 0.7);
    color: #2e7d32;
}

.alert-info {
    background: rgba(100, 180, 255, 0.15);
    border: 1px solid rgba(100, 180, 255, 0.6);
    color: #1a3a8a;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #856404;
}

/* ===== CAMPOS ===== */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4a5a7a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(26, 42, 94, 0.2);
    border-radius: 40px;
    padding: 0 46px 0 20px;
    font-size: 15px;
    color: #1a2a4a;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    /*transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;*/
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box input:focus {
    border-color: #1a2a5e;
    /*background: rgba(255, 255, 255, 0.95);*/
    box-shadow: 0 0 8px rgba(26, 42, 94, 0.25);
}

.input-box input::placeholder {
    color: #9aaac0;
    font-size: 14px;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #8a9ab5;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.input-box i:hover {
    transform: translateY(-50%) scale(1.1);
    color: #1a2a5e;
}

.input-box.input-error input {
    border-color: rgba(255, 80, 80, 0.8);
}

/* ===== BOTÓN ===== */
.btn {
    width: 100%;
    height: 46px;
    background: #1a2a5e;
    border: none;
    border-radius: 40px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.btn:hover {
    background: #2d4a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 42, 94, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #8a9ab5;
}

/* ===== ANIMACIONES ===== */
@keyframes aparecerLogin {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .wrapper {
        padding: 28px 22px 22px;
    }

    .colegio-nombre {
        font-size: 16px;
    }
}

.bx::before,
[class^="bx"]::before,
[class*=" bx"]::before {
    font-family: 'boxicons' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}