* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #061321;
    --navy-light: #0d2134;
    --border: #dce3e8;
    --text: #13202c;
    --muted: #77828c;
    --white: #ffffff;
    --background: #f5f7f9;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);
    color: var(--text);
}


/* ===========================
   SPLASH SCREEN
=========================== */

.splash-screen {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #102c45 0%,
            #061321 45%,
            #020911 100%
        );

    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 210px;

    animation:
        logoEntry 1.3s
        cubic-bezier(.17,.67,.25,1.3);
}

@keyframes logoEntry {

    0% {
        opacity: 0;
        transform:
            scale(.55)
            rotate(-5deg);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform:
            scale(1.08)
            rotate(0);
        filter: blur(0);
    }

    100% {
        transform: scale(1);
    }
}

.loader {
    width: 36px;
    height: 36px;

    margin: 35px auto 0;

    border: 3px solid rgba(255,255,255,.2);
    border-top-color: white;

    border-radius: 50%;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===========================
   LOGIN
=========================== */

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(430px, 45%)
        1fr;
}


/* ===========================
   BRAND PANEL
=========================== */

.brand-panel {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #020911,
            #061523 50%,
            #0b253b
        );
}

.brand-panel::after {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    border-radius: 50%;

    background:
        rgba(38, 104, 155, .13);

    filter: blur(70px);

    top: -220px;
    right: -220px;
}

.brand-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(0,0,0,.22)
        );
}

.brand-content {
    position: relative;

    z-index: 2;

    width: 80%;

    text-align: center;

    color: white;
}

.main-logo {
    width: 245px;

    margin-bottom: 30px;

    filter:
        drop-shadow(
            0 20px 35px
            rgba(0,0,0,.35)
        );
}

.brand-content h1 {
    font-size: 34px;

    letter-spacing: 4px;
}

.brand-content h1 span {
    display: block;

    margin-top: 7px;

    font-size: 22px;

    letter-spacing: 5px;

    font-weight: 500;
}

.brand-content p {
    max-width: 450px;

    margin:
        28px auto 0;

    color: rgba(255,255,255,.7);

    line-height: 1.7;

    font-size: 15px;
}


/* ===========================
   LOGIN PANEL
=========================== */

.login-panel {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5f7f9
        );
}

.login-container {
    width: min(
        450px,
        calc(100% - 60px)
    );
}

.mobile-logo {
    display: none;
}

.welcome-label {
    display: inline-block;

    margin-bottom: 16px;

    color: #587084;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.login-container h2 {
    font-size: 34px;

    margin-bottom: 12px;
}

.subtitle {
    margin-bottom: 38px;

    color: var(--muted);

    line-height: 1.5;
}


/* ===========================
   FORM
=========================== */

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;

    height: 57px;

    padding:
        0 52px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color: var(--text);

    font-size: 15px;

    outline: none;

    transition: .25s ease;
}

.input-wrapper input:focus {
    border-color: #183c59;

    box-shadow:
        0 0 0 4px
        rgba(24,60,89,.08);
}

.input-icon {
    position: absolute;

    left: 18px;

    z-index: 2;

    color: #7b8994;
}

.show-password {
    position: absolute;

    right: 15px;

    border: 0;

    background: transparent;

    cursor: pointer;

    opacity: .6;
}

.login-button {
    width: 100%;

    height: 58px;

    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #071726,
            #102d46
        );

    color: white;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 25px
        rgba(8,28,45,.18);

    transition: .25s ease;
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 32px
        rgba(8,28,45,.25);
}


/* ===========================
   MENSAJES
=========================== */

.error-message {
    padding: 14px 16px;

    margin-bottom: 25px;

    border-radius: 9px;

    background: #fff1f1;

    border: 1px solid #ffd2d2;

    color: #b82c2c;

    font-size: 14px;
}

.security-message {
    margin-top: 25px;

    text-align: center;

    color: #84909a;

    font-size: 12px;
}

footer {
    margin-top: 55px;

    text-align: center;

    color: #a0a8af;

    font-size: 12px;

    line-height: 1.7;
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 850px) {

    .login-page {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
    }

    .mobile-logo {
        display: block;

        text-align: center;

        margin-bottom: 25px;
    }

    .mobile-logo img {
        width: 120px;
    }
}