/* =========================================================
   TICKETPRO
   LOGIN
   ========================================================= */


/* =========================================================
   PÁGINA
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.login-page {
    width: 100%;
    height: 100%;
    background: #070d18;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.login-container {
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
}


.login-row {
    margin: 0;
}


/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.login-brand-panel {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient( circle at 30% 30%, rgba(124, 58, 237, 0.14), transparent 35% ), #0a1220;
    border-right: 1px solid rgba(255, 255, 255, 0.055);
}


    .login-brand-panel::before {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        top: -180px;
        right: -180px;
        border-radius: 50%;
        background: rgba(124, 58, 237, 0.07);
        filter: blur(10px);
    }


    .login-brand-panel::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        bottom: -150px;
        left: -130px;
        border-radius: 50%;
        background: rgba(67, 56, 202, 0.06);
        filter: blur(10px);
    }


/* =========================================================
   CONTENIDO BRAND
   ========================================================= */

.login-brand-content {
    position: relative;
    z-index: 2;
    width: min(430px, 80%);
    text-align: left;
}


.login-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient( 135deg, #7c3aed, #5923b5 );
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.24);
}


    .login-logo svg {
        width: 28px;
        height: 28px;
    }


.login-brand-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(35px, 4vw, 52px);
    font-weight: 750;
    letter-spacing: -1.8px;
}


.login-brand-description {
    max-width: 370px;
    margin: 14px 0 0;
    color: #68758a;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CARDS DECORATIVAS
   ========================================================= */

.login-brand-decoration {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 42px;
    width: 290px;
}


.login-decoration-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


.login-decoration-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(124, 58, 237, 0.12);
    color: #a982ef;
}


.login-decoration-icon-green {
    background: rgba(34, 197, 94, 0.10);
    color: #4ade80;
}


.login-decoration-icon svg {
    width: 18px;
    height: 18px;
}


.login-decoration-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.login-decoration-label {
    color: #647187;
    font-size: 9px;
}


.login-decoration-value {
    color: #e7eaf0;
    font-size: 12px;
    font-weight: 650;
}


/* =========================================================
   PANEL FORMULARIO
   ========================================================= */

.login-form-panel {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient( circle at 80% 15%, rgba(124, 58, 237, 0.045), transparent 30% ), #070d18;
}


.login-form-container {
    width: min(410px, 84%);
    padding: 30px 0;
}


/* =========================================================
   BRAND MÓVIL
   ========================================================= */

.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}


.login-logo-mobile {
    width: 39px;
    height: 39px;
    margin: 0;
    border-radius: 11px;
}


    .login-logo-mobile svg {
        width: 21px;
        height: 21px;
    }


/* =========================================================
   HEADER
   ========================================================= */

.login-header {
    margin-bottom: 30px;
}


.login-header-label {
    display: block;
    margin-bottom: 9px;
    color: #8b5cf6;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.3px;
}


.login-title {
    margin: 0;
    color: #f3f5f8;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.8px;
}


.login-subtitle {
    margin: 8px 0 0;
    color: #69768a;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   VALIDACIÓN
   ========================================================= */

.login-validation {
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, 0.20);
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.07);
    color: #fca5a5;
    font-size: 11px;
}


    .login-validation ul {
        margin: 0;
        padding-left: 17px;
    }


    .login-validation li {
        margin: 2px 0;
    }


/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}


.login-field {
    width: 100%;
}


.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.login-label {
    display: block;
    margin-bottom: 8px;
    color: #a5afbf;
    font-size: 11px;
    font-weight: 600;
}


.login-input-wrapper {
    position: relative;
    width: 100%;
}


.login-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 3;
    width: 17px;
    height: 17px;
    color: #59677b;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.2s ease;
}


.login-input-wrapper:focus-within .login-input-icon {
    color: #9a70ed;
}


/* =========================================================
   INPUTS
   ========================================================= */

.login-input {
    width: 100%;
    min-height: 48px;
    padding: 0 45px 0 43px;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    color: #edf0f5 !important;
    font-family: inherit;
    font-size: 12px;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}


    .login-input::placeholder {
        color: #4f5c70;
        opacity: 1;
    }


    .login-input:hover {
        border-color: rgba(255, 255, 255, 0.12) !important;
    }


    .login-input:focus {
        border-color: rgba(124, 58, 237, 0.65) !important;
        background: rgba(124, 58, 237, 0.035) !important;
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08) !important;
    }


    .login-input:-webkit-autofill,
    .login-input:-webkit-autofill:hover,
    .login-input:-webkit-autofill:focus {
        -webkit-text-fill-color: #edf0f5;
        transition: background-color 9999s ease-in-out 0s;
    }


/* =========================================================
   MOSTRAR CONTRASEÑA
   ========================================================= */

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    z-index: 4;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #59677b;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}


    .login-password-toggle:hover {
        color: #a982ef;
    }


    .login-password-toggle svg {
        width: 16px;
        height: 16px;
    }


.login-password-hide {
    display: none;
}


.login-password-toggle.login-password-visible
.login-password-show {
    display: none;
}


.login-password-toggle.login-password-visible
.login-password-hide {
    display: block;
}


/* =========================================================
   ERROR INDIVIDUAL
   ========================================================= */

.login-field-error {
    display: block;
    margin-top: 6px;
    color: #f87171;
    font-size: 10px;
}


/* =========================================================
   BOTÓN LOGIN
   ========================================================= */

.login-submit-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient( 135deg, #7c3aed, #6825cf ) !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    box-shadow: 0 9px 25px rgba(124, 58, 237, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}


    .login-submit-button:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
        box-shadow: 0 12px 30px rgba(124, 58, 237, 0.25);
    }


    .login-submit-button:active {
        transform: translateY(0);
    }


    .login-submit-button:focus-visible {
        outline: 2px solid rgba(167, 139, 250, 0.8);
        outline-offset: 3px;
    }


/* =========================================================
   LOADING
   ========================================================= */

.login-submit-loading {
    display: none;
    align-items: center;
    gap: 8px;
}


.login-submit-button.login-is-loading {
    cursor: wait;
    opacity: 0.8;
    pointer-events: none;
}


    .login-submit-button.login-is-loading
    .login-submit-text {
        display: none;
    }


    .login-submit-button.login-is-loading
    .login-submit-loading {
        display: inline-flex;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 35px;
    color: #3f4b5e;
    font-size: 9px;
}


.login-footer-separator {
    color: #596579;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .login-brand-content {
        width: 78%;
    }


    .login-brand-title {
        font-size: 38px;
    }


    .login-brand-description {
        font-size: 12px;
    }


    .login-brand-decoration {
        width: 260px;
        margin-top: 30px;
    }


    .login-form-container {
        width: 82%;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }


    .login-page {
        min-height: 100dvh;
        background: #070d18;
    }


    .login-container {
        height: auto;
        min-height: 100dvh;
    }


    .login-row {
        min-height: 100dvh;
    }


    /* ---------------------------------------------
       OCULTAR PANEL IZQUIERDO
       --------------------------------------------- */

    .login-brand-panel {
        display: none;
    }


    /* ---------------------------------------------
       FORMULARIO
       --------------------------------------------- */

    .login-form-panel {
        width: 100%;
        min-height: 100dvh;
        padding: 0 20px;
    }


    .login-form-container {
        width: min(420px, 100%);
        padding: 35px 0 25px;
    }


    .login-mobile-brand {
        display: flex;
    }


    .login-header {
        margin-bottom: 28px;
    }


    .login-title {
        font-size: 27px;
    }


    .login-subtitle {
        font-size: 12px;
    }


    .login-form {
        gap: 19px;
    }


    .login-input {
        min-height: 50px;
    }


    .login-submit-button {
        min-height: 50px;
        margin-top: 4px;
    }


    .login-footer {
        margin-top: 28px;
    }
}


/* =========================================================
   IPHONE PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {

    .login-form-panel {
        padding: 0 17px;
    }


    .login-form-container {
        padding-top: 28px;
    }


    .login-mobile-brand {
        margin-bottom: 29px;
    }


    .login-header {
        margin-bottom: 24px;
    }


    .login-title {
        font-size: 25px;
    }


    .login-form {
        gap: 17px;
    }


    .login-input {
        min-height: 48px;
    }


    .login-submit-button {
        min-height: 48px;
    }


    .login-footer {
        margin-top: 24px;
    }
}


/* =========================================================
   PANTALLAS MUY BAJAS
   ========================================================= */

@media (max-height: 650px) and (min-width: 768px) {

    .login-form-container {
        padding-top: 15px;
        padding-bottom: 15px;
    }


    .login-header {
        margin-bottom: 20px;
    }


    .login-form {
        gap: 14px;
    }


    .login-footer {
        margin-top: 20px;
    }
}
