﻿:root {
    --primary: #003366;
    --primary-rgb: 0, 51, 102;
    --primary-dark: #031f38;
    --primary-dark-rgb: 3, 31, 56;
    --primary-light: #eef4ff;
    --primary-light-rgb: 238, 244, 255;
    --accent: #ffcc00;
    --accent-rgb: 255, 204, 0;
    --right-start: #003366;
    --right-end: #031f38;
    --white: #ffffff;
    --page-bg: #ffffff;
    --panel-bg: #ffffff;
    --text-dark: #10202a;
    --text-muted: #718096;
    --text-label: #5c6b7a;
    --text-placeholder: #9aa8b5;
    --border: #d9e2ec;
    --border-mid: #c8d7dd;
    --danger-bg: #fff1f1;
    --danger-border: #ffd4d4;
    --danger-text: #9b1c1c;
    --left-panel-width: 30%;
    --right-panel-width: 70%;
    --content-max-width: 390px;
    --left-padding-x: 55px;
    --powered-bg: rgba(255,255,255,.96);
    --powered-border: rgba(3,31,56,.06);
    --rose: #c94040;
    --rose-light: #fdf0f0;
    --violet: #5a4ab0;
    --violet-light: #f0eeff;
    --green: #3a7a50;
    --green-light: #edf7f0;
    --gold: var(--accent);
    --gold-light: #f5eedc;
    --teal: #005662;
    --teal-mid: #007080;
    --teal-light: #008fa3;
    --teal-pale: #e0f2f5;
    --teal-faint: #f0f9fb;
    --ink: var(--text-dark);
    --ink-mid: var(--text-label);
    --ink-soft: var(--text-muted);
    --ink-faint: var(--text-placeholder);
    --bg: var(--page-bg);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text-dark);
}

    body::-webkit-scrollbar {
        width: 6px;
    }

    body::-webkit-scrollbar-track {
        background: transparent;
    }

    body::-webkit-scrollbar-thumb {
        background: #6b7888;
        border-radius: 999px;
        transition: .3s;
    }

        body::-webkit-scrollbar-thumb:hover {
            background: #3d4852;
        }

.container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Layout principal */
.login-page {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--left-panel-width) var(--right-panel-width);
    overflow: hidden;
    background: var(--page-bg);
}

/* Panel izquierdo */
.login-left {
    min-height: 100vh;
    background: var(--panel-bg);
    padding: 45px var(--left-padding-x);
    display: flex;
    flex-direction: column;
    position: relative;
}

    .login-left::before {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: rgba(var(--primary-rgb), .045);
        top: -160px;
        left: -120px;
        z-index: 0;
    }

    .login-left::after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        border-radius: 50%;
        background: rgba(var(--primary-rgb), .035);
        bottom: -180px;
        right: -130px;
        z-index: 0;
    }

.modern-brand,
.form-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   MODERN BRAND
   ========================================================= */

.modern-brand {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto 28px auto;
    display: flex;
    align-items: center;
    gap: 15px;
}


.brand-symbol {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient( 145deg, rgba(var(--primary-rgb), .10), rgba(var(--primary-rgb), .035) );
    border: 1px solid rgba(var(--primary-rgb), .12);
    color: var(--primary);
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), .08);
}


.brand-content {
    min-width: 0;
}


.brand-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}


.brand-name {
    color: var(--text-dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.35px;
}


    .brand-name span {
        color: var(--primary);
    }


.brand-status {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
}


.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, .10);
}




/* =========================================================
   FORM CONTAINER
   ========================================================= */

.form-container {
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.login-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 28px 29px 25px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(20, 60, 90, .08);
    border-radius: 18px;
    box-shadow: 0 24px 65px rgba(18, 43, 62, .075), 0 5px 18px rgba(18, 43, 62, .025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* Acento superior */

.login-card-accent {
    position: absolute;
    top: 0;
    left: 28px;
    width: 55px;
    height: 3px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient( 90deg, var(--primary), #53aaff );
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.login-card-header {
    margin-bottom: 25px;
}


/* Badge */

.secure-badge {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 5px 9px 5px 6px;
    border-radius: 20px;
    background: var(--primary-ultra-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}


.secure-dot {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-soft);
}


    .secure-dot i {
        font-size: 8px;
    }


/* =========================================================
   TITLE
   ========================================================= */

.form-title {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.8px;
}


.form-subtitle {
    max-width: 330px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   ERROR
   ========================================================= */

#error-message {
    display: none;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.container-input-login {
    margin-bottom: 17px;
}


    .container-input-login label,
    .wrap-input100 label {
        display: block;
        margin-bottom: 7px !important;
        color: var(--text-label);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1px;
    }


.input-icon {
    position: relative;
}


    .input-icon > i {
        position: absolute;
        top: 50%;
        left: 16px;
        z-index: 2;
        transform: translateY(-50%);
        color: rgba(var(--primary-rgb), .34);
        font-size: 13px;
        pointer-events: none;
    }

.container-input-login input,
.wrap-input100 select {
    width: 100%;
    height: 50px;
    padding: 0 15px 0 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #f8fbfd !important;
    color: var(--text-dark);
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    .container-input-login input:hover,
    .wrap-input100 select:hover {
        border-color: var(--border-hover);
        background: #ffffff !important;
    }


    .container-input-login input:focus,
    .wrap-input100 select:focus {
        border-color: var(--primary);
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .075);
    }


    .container-input-login input::placeholder {
        color: var(--text-placeholder);
    }


.wrap-input100 select {
    cursor: pointer;
    padding-left: 44px !important;
}

/* =========================================================
   LOGIN OPTIONS
   ========================================================= */

.login-options {
    margin: -1px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.show-password {
    display: flex;
    align-items: center;
    gap: 8px;
}


.switch {
    position: relative;
    width: 30px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
}


    .switch input {
        width: 0;
        height: 0;
        opacity: 0;
    }


.switch-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 20px;
    background: #dce5ec;
    transition: .2s ease;
}


    .switch-slider::before {
        content: "";
        position: absolute;
        width: 13px;
        height: 13px;
        top: 2px;
        left: 2px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
        transition: .2s ease;
    }


.switch input:checked + .switch-slider {
    background: var(--primary);
}


    .switch input:checked + .switch-slider::before {
        transform: translateX(13px);
    }


.show-password-label {
    margin: 0;
    cursor: pointer;
    color: var(--text-mid);
    font-size: 10px;
    font-weight: 500;
}

/* =========================================================
   SUBMIT
   ========================================================= */

.submit-buttons {
    margin-top: 4px;
}


    .submit-buttons button {
        width: 100%;
        height: 51px;
        border: none;
        border-radius: 10px;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        background: linear-gradient( 135deg, var(--primary-dark), var(--primary) );
        color: var(--white);
        font-size: 13px;
        font-weight: 800;
        box-shadow: 0 10px 24px rgba(var(--primary-rgb), .18);
        transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }


        .submit-buttons button i {
            font-size: 10px;
            transition: transform .2s ease;
        }


        .submit-buttons button:hover {
            transform: translateY(-1px);
            background: linear-gradient( 135deg, var(--primary-dark), var(--text-dark) );
            box-shadow: 0 14px 28px rgba(var(--primary-rgb), .25);
        }


            .submit-buttons button:hover i {
                transform: translateX(3px);
            }


        .submit-buttons button:active {
            transform: translateY(0);
        }


/* =========================================================
   SECURITY
   ========================================================= */

.login-security {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-placeholder);
    font-size: 8px;
}


    .login-security i {
        color: rgba(var(--primary-rgb), .55);
        font-size: 8px;
    }


.security-separator {
    opacity: .5;
}


/* =========================================================
   HELP
   ========================================================= */

.login-help {
    width: calc(100% - 28px);
    margin: 15px auto 0;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(var(--primary-dark-rgb), .05);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}


.help-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
}


.help-text strong {
    display: block;
    color: var(--text-mid);
    font-size: 9px;
    font-weight: 700;
}


.help-text span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 8px;
}



/* =========================================================
   RIGHT
   ========================================================= */

.login-right {
    background-image: url('../../images/index/magnatickets.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   OVERLAY
   ========================================================= */

.login-right-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(1, 18, 34, .56) 0%, rgba(1, 18, 34, .30) 45%, rgba(1, 18, 34, .13) 100% );
}


.login-right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    z-index: 1;
    background: linear-gradient( to top, rgba(0, 13, 26, .42), transparent );
    pointer-events: none;
}


.right-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    text-align: center;
    color: rgba(255,255,255,.70);
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 500;
    z-index: 5;
}

@media(max-width:900px) {

    .right-footer {
        display: none;
    }
}



/* =========================================================
   RIGHT CONTENT
   ========================================================= */

.right-content {
    text-align: left;
    max-width: 650px;
    padding: 40px;
    position: relative;
    z-index: 2;
}


/* =========================================================
   RIGHT BRAND
   ========================================================= */

.right-brand {
    margin-bottom: 18px;
}

    .right-brand img {
        display: block;
        width: auto;
        max-width: 135px;
        max-height: 65px;
        object-fit: contain;
        filter: drop-shadow( 0 5px 15px rgba(0, 0, 0, .25) );
    }


/* =========================================================
   RIGHT TITLE
   ========================================================= */

.right-content h1 {
    margin: 0 0 9px 0;
    color: var(--white);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    text-shadow: 0 3px 17px rgba(0, 0, 0, .25);
}


.right-content > p {
    margin: 0 0 34px 0;
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features-list {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
}


.feature-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), .15);
    border: 1px solid rgba(var(--accent-rgb), .08);
    color: var(--accent);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


    .feature-icon i {
        font-size: 14px;
    }


.feature-text strong {
    display: block;
    margin-bottom: 2px;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}


.feature-text span {
    display: block;
    color: rgba(255, 255, 255, .69);
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   SOCIAL
   ========================================================= */

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}


    .social-links a {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        color: rgba(255, 255, 255, .82);
        border: 1px solid rgba(255, 255, 255, .11);
        border-radius: 9px;
        background: rgba(255, 255, 255, .08);
        text-decoration: none;
        transition: .2s ease;
        backdrop-filter: blur(7px);
    }


        .social-links a:hover {
            color: var(--white);
            background: rgba(255, 255, 255, .17);
            transform: translateY(-2px);
            text-decoration: none;
        }

/* =========================================================
   FOOTER
   ========================================================= */

.right-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    z-index: 4;
    padding: 0 15px;
    color: rgba(255, 255, 255, .53);
    text-align: center;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .2px;
}

/* =========================================================
   POWERED BY
   ========================================================= */

.powered-box {
    width: 62%;
    min-height: 60px;
    margin: 0 auto;
    background: var(--powered-bg);
    border: 1px solid var(--powered-border);
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(var(--primary-dark-rgb), .06), inset 0 1px 0 rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    backdrop-filter: blur(8px);
}

.powered-box-img {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-right: 9px;
    margin-right: 1px;
    border-right: 1px solid var(--border-mid);
}

    .powered-box-img img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        display: block;
    }

.powered-by {
    font-size: 8px;
    line-height: 1;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.powered-text h3 {
    margin: 0;
    font-size: 11px;
    line-height: 1.1;
    color: var(--primary-dark);
    font-weight: 800;
}

.powered-text p {
    margin: 3px 0 0;
    font-size: 7.5px;
    line-height: 1.2;
    color: var(--text-muted);
    white-space: nowrap;
}

/* =========================================================
   ANIMATION
   ========================================================= */

.animated {
    animation-duration: .55s;
    animation-fill-mode: both;
}


.fadeIn {
    animation-name: loginFade;
}


@keyframes loginFade {

    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Copyright lado derecho */
.footer-copy {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1400px) {

    :root {
        --left-panel-width: 32%;
        --right-panel-width: 68%;
        --left-padding-x: 42px;
    }


    .right-content {
        max-width: 475px;
    }


        .right-content h1 {
            font-size: 44px;
        }
}


@media (max-width: 1200px) {

    :root {
        --left-panel-width: 38%;
        --right-panel-width: 62%;
        --left-padding-x: 35px;
    }


    .right-content {
        max-width: 440px;
        padding: 28px;
    }


        .right-content h1 {
            font-size: 40px;
        }
}


@media (max-width: 900px) {

    :root {
        --left-panel-width: 100%;
        --right-panel-width: 0%;
    }


    .login-page {
        grid-template-columns: 1fr;
    }


    .login-right {
        display: none;
    }


    .login-left {
        min-height: 100vh;
        padding: 35px 25px;
    }


    .modern-brand,
    .form-container {
        max-width: 430px;
    }
}


@media (max-width: 480px) {

    .login-left {
        padding: 25px 17px;
    }


    .modern-brand {
        margin-bottom: 21px;
    }


    .login-card {
        padding: 25px 21px;
        border-radius: 16px;
    }


    .form-title {
        font-size: 28px;
    }


    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 11px;
    }


    .login-help {
        width: calc(100% - 16px);
    }
}


@media (max-height: 820px) and (min-width: 901px) {

    .login-left {
        padding-top: 22px;
        padding-bottom: 22px;
    }


    .modern-brand {
        margin-bottom: 18px;
    }


    .login-card {
        padding: 22px 27px;
    }


    .login-card-header {
        margin-bottom: 18px;
    }


    .secure-badge {
        margin-bottom: 10px;
    }


    .form-title {
        font-size: 28px;
    }


    .container-input-login {
        margin-bottom: 13px;
    }


        .container-input-login input,
        .wrap-input100 select {
            height: 45px;
        }


    .login-options {
        margin-bottom: 16px;
    }


    .submit-buttons button {
        height: 47px;
    }


    .login-security {
        margin-top: 10px;
    }


    .login-help {
        margin-top: 10px;
        padding: 8px 12px;
    }
}


@media (max-width: 430px) {
    .login-left {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 31px;
    }

    .form-subtitle {
        font-size: 14px;
    }

    .brand-mini strong {
        font-size: 16px;
    }

    .container-input-login input,
    .wrap-input100 select {
        height: 52px;
    }

    .powered-box {
        padding: 15px;
        gap: 12px;
    }

    .powered-text h3 {
        font-size: 18px;
    }

    .powered-text p {
        font-size: 10px;
    }
}
