/* LOGIN ASEBEP */

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

:root {
    --primary-purple: #7c3aed;
    --soft-purple: #a78bfa;
    --light-purple: #f3e8ff;

    --unah-blue: #0b3b75;
    --gold: #f5b301;

    --dark-text: #1f2937;
    --muted-text: #6b7280;

    --white: #ffffff;
    --soft-white: #f9fafb;

    --danger: #dc2626;
    --danger-bg: #fee2e2;

    --border-soft: rgba(124, 58, 237, 0.16);
    --shadow-soft: 0 24px 60px rgba(124, 58, 237, 0.16);
    --shadow-card: 0 20px 45px rgba(31, 41, 55, 0.12);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--dark-text);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 179, 1, 0.20), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7f2ff 50%, #fff8e6 100%);
}

/* ESTRUCTURA GENERAL */

.login-page {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 42px;
    padding: 48px;
}

/* PANEL INSTITUCIONAL */

.login-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 58px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(245, 179, 1, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 232, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(245, 179, 1, 0.20);
    filter: blur(18px);
}

.login-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.16);
    filter: blur(20px);
}

.login-hero__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.login-hero__badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--primary-purple);
    background: rgba(124, 58, 237, 0.12);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.login-hero h1 {
    margin-bottom: 20px;
    color: var(--dark-text);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -2px;
}

.login-hero p {
    max-width: 560px;
    color: var(--muted-text);
    font-size: 1.06rem;
    line-height: 1.8;
}

/* Tarjeta informativa del acceso */
.login-access-card {
    width: fit-content;
    margin-top: 36px;
    padding: 18px 22px;
    border-radius: 22px;
    color: #111827;
    background: linear-gradient(135deg, #ffd34d, var(--gold));
    box-shadow:
        0 18px 36px rgba(245, 179, 1, 0.30),
        0 0 0 8px rgba(245, 179, 1, 0.10);
    animation: accessFloat 3.4s ease-in-out infinite;
}

.login-access-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 950;
}

.login-access-card span {
    display: block;
    font-size: 0.84rem;
    font-weight: 900;
}

@keyframes accessFloat {
    0% {
        transform: translateY(0);
        box-shadow:
            0 18px 36px rgba(245, 179, 1, 0.30),
            0 0 0 8px rgba(245, 179, 1, 0.10);
    }

    50% {
        transform: translateY(-9px);
        box-shadow:
            0 26px 48px rgba(245, 179, 1, 0.38),
            0 0 0 14px rgba(245, 179, 1, 0.08);
    }

    100% {
        transform: translateY(0);
        box-shadow:
            0 18px 36px rgba(245, 179, 1, 0.30),
            0 0 0 8px rgba(245, 179, 1, 0.10);
    }
}

/* PANEL DEL FORMULARIO */

.login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.login-card__header {
    margin-bottom: 26px;
    text-align: center;
}

.login-card__logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(11, 59, 117, 0.16);
}

.login-card__header h2 {
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 2rem;
}

.login-card__header p {
    color: var(--muted-text);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* ALERTA DEL LOGIN */

.login-alert {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.16);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.login-alert.show {
    display: block;
    animation: alertShake 0.35s ease;
}

@keyframes alertShake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}

/* FORMULARIO */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid rgba(124, 58, 237, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--dark-text);
    font-size: 0.98rem;
    font-weight: 600;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.form-group input::placeholder {
    color: #a1a1aa;
    font-weight: 500;
}

.form-group input:focus {
    border-color: var(--primary-purple);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}

/* BOTÓN */

.login-button {
    width: 100%;
    margin-top: 8px;
    padding: 15px 18px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-purple), var(--soft-purple));
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(124, 58, 237, 0.34);
    filter: brightness(1.03);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
}

.login-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    filter: saturate(0.9);
}

.login-card__footer {
    margin-top: 22px;
    color: var(--muted-text);
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .login-page {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 28px;
    }

    .login-hero {
        min-height: auto;
        padding: 46px;
    }

    .login-card {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 20px;
    }

    .login-hero {
        padding: 34px 26px;
        border-radius: 26px;
    }

    .login-hero h1 {
        font-size: 2.35rem;
        letter-spacing: -1px;
    }

    .login-hero p {
        font-size: 0.98rem;
    }

    .login-access-card {
        margin-top: 28px;
        padding: 16px 18px;
    }

    .login-card {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .login-card__logo {
        width: 94px;
        height: 94px;
    }

    .login-card__header h2 {
        font-size: 1.7rem;
    }
}