/* =========================================================
   SAIR - LOGIN
========================================================= */

:root {

    --g: #6A1B29;
    --g2: #4b1220;
    --g3: #8a2638;

    --d: #BC955C;
    --d2: #d5b47c;

    --dark: #1f2937;
    --gray: #6b7280;

    --border: #e5e7eb;

    --bg: #f4f5f7;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);

    color: var(--dark);

}


/* =========================================================
   CONTENEDOR
========================================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 1fr)
        minmax(500px, 1fr);

}


/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.login-side {

    position: relative;

    min-height: 100vh;

    padding: 50px 60px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    color: white;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #4b1220,
            #741d30
        );

}


.login-side::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    right: -220px;
    top: -170px;

    background:
        radial-gradient(
            circle,
            rgba(188,149,92,.25),
            transparent 70%
        );

}


.login-side::after {

    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    left: -280px;
    bottom: -220px;

    border:
        1px solid
        rgba(255,255,255,.08);

}


/* =========================================================
   CONTENIDO
========================================================= */

.side-content,
.side-footer {

    position: relative;

    z-index: 2;

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: inline-flex;

    align-items: center;

    gap: 14px;

    color: white;

    text-decoration: none;

}


.brand-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    border:
        1px solid
        rgba(188,149,92,.8);

    color: var(--d);

    font-size: 21px;

    background:
        rgba(255,255,255,.04);

}


.brand-text {

    display: flex;

    flex-direction: column;

}


.brand-text strong {

    font-size: 29px;

    line-height: 1;

    font-weight: 900;

}


.brand-text span {

    margin-top: 5px;

    max-width: 290px;

    color:
        rgba(255,255,255,.65);

    font-size: 10px;

    line-height: 1.4;

}


/* =========================================================
   MENSAJE
========================================================= */

.side-message {

    max-width: 590px;

    margin-top: 120px;

}


.side-label {

    display: inline-block;

    color: var(--d);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.side-message h1 {

    margin-top: 18px;

    font-size:
        clamp(40px, 4vw, 60px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 900;

}


.side-message h1 span {

    display: block;

    color: var(--d);

}


.side-message p {

    max-width: 540px;

    margin-top: 24px;

    color:
        rgba(255,255,255,.72);

    font-size: 17px;

    line-height: 1.7;

}


/* =========================================================
   FEATURES
========================================================= */

.side-features {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 35px;

}


.side-features div {

    display: flex;

    align-items: center;

    gap: 12px;

    color:
        rgba(255,255,255,.75);

    font-size: 13px;

}


.side-features i {

    width: 28px;

    color: var(--d);

}


/* =========================================================
   FOOTER
========================================================= */

.side-footer {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color:
        rgba(255,255,255,.38);

    font-size: 11px;

}


/* =========================================================
   PANEL DERECHO
========================================================= */

.login-main {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


/* =========================================================
   TARJETA
========================================================= */

.login-card {

    width: 100%;

    max-width: 500px;

    padding: 42px;

    background: white;

    border:
        1px solid
        rgba(0,0,0,.05);

    border-radius: 26px;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.10);

}


/* =========================================================
   HEADER
========================================================= */

.login-header {

    margin-bottom: 30px;

}


.welcome {

    color: var(--d);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.login-header h2 {

    margin-top: 8px;

    color: #111827;

    font-size: 34px;

    line-height: 1.15;

    font-weight: 900;

}


.login-header p {

    margin-top: 8px;

    color: var(--gray);

    font-size: 14px;

}


/* =========================================================
   CAMPOS
========================================================= */

.field {

    margin-bottom: 18px;

}


.field label {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    color: #374151;

    font-size: 12px;

    font-weight: 800;

}


.field label i {

    color: var(--g);

}


/* =========================================================
   INPUTS
========================================================= */

.input-wrapper,
.password-wrapper {

    position: relative;

}


.field input,
.field select {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background: white;

    color: #1f2937;

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.field select {

    cursor: pointer;

}


.field input:focus,
.field select:focus {

    border-color: var(--d);

    box-shadow:
        0 0 0 3px
        rgba(188,149,92,.12);

}


.field select:disabled {

    background: #f3f4f6;

    color: #9ca3af;

    cursor: not-allowed;

}


/* =========================================================
   PASSWORD
========================================================= */

.password-wrapper input {

    padding-right: 50px;

}


.password-wrapper button {

    position: absolute;

    right: 0;
    top: 0;

    width: 48px;
    height: 48px;

    border: none;

    background: transparent;

    color: #9ca3af;

    cursor: pointer;

}


.password-wrapper button:hover {

    color: var(--g);

}


/* =========================================================
   ALERTA
========================================================= */

.login-alert {

    padding: 12px 14px;

    margin:
        5px 0 18px;

    border-radius: 10px;

    border:
        1px solid #fecaca;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 12px;

    line-height: 1.5;

}


.login-alert.hidden {

    display: none;

}


/* =========================================================
   BOTÓN
========================================================= */

.login-button {

    width: 100%;

    height: 51px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--g),
            var(--g2)
        );

    color: white;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(106,27,41,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.login-button:hover:not(:disabled) {

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(106,27,41,.24);

}


.login-button:disabled {

    opacity: .65;

    cursor: not-allowed;

}


/* =========================================================
   SEGURIDAD
========================================================= */

.security-message {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 22px;

    padding: 13px;

    border-radius: 11px;

    background: #f8f9fa;

    border:
        1px solid #edf0f2;

    color: #6b7280;

    font-size: 10px;

    line-height: 1.5;

}


.security-message i {

    margin-top: 2px;

    color: var(--g);

}


/* =========================================================
   VOLVER
========================================================= */

.back-link {

    display: block;

    margin-top: 22px;

    text-align: center;

    color: #6b7280;

    font-size: 12px;

    text-decoration: none;

    transition: .2s;

}


.back-link:hover {

    color: var(--g);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .login-page {

        grid-template-columns: 1fr;

    }

    .login-side {

        min-height: auto;

        padding: 35px;

    }

    .side-message {

        margin-top: 70px;

        margin-bottom: 60px;

    }

    .login-main {

        min-height: auto;

        padding: 35px 20px;

    }

}


@media (max-width: 600px) {

    .login-side {

        padding: 28px 22px;

    }

    .side-message {

        margin-top: 55px;

    }

    .side-message h1 {

        font-size: 38px;

    }

    .side-message p {

        font-size: 15px;

    }

    .side-footer {

        flex-direction: column;

    }

    .login-main {

        padding: 20px 14px;

    }

    .login-card {

        padding: 28px 22px;

        border-radius: 20px;

    }

    .login-header h2 {

        font-size: 29px;

    }

}