﻿/* =========================================================
   LOGIN MODERNO - GUEPARDOS SKATE
========================================================= */

.login-modern-page {
    min-height: 100vh;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: radial-gradient(circle at 15% 18%, rgba(33,79,136,.14), transparent 28%), radial-gradient(circle at 85% 82%, rgba(23,105,194,.08), transparent 30%), linear-gradient(135deg, #E7EDF4 0%, #F5F7FA 58%, #EDF2F7 100%);
}

.login-modern-shell {
    width: min(1050px, calc(100vw - 70px));
    min-height: 620px;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    border: 1px solid #D8E2EC;
    border-radius: 26px;
    background: #FFFFFF;
    box-shadow: 0 28px 75px rgba(15,23,42,.16);
}

.login-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 88% 22%, rgba(62,132,214,.38), transparent 32%), radial-gradient(circle at 10% 90%, rgba(38,88,148,.25), transparent 32%), linear-gradient(150deg, #07172A 0%, #0B2341 52%, #1D4F86 100%);
}

    .login-visual::before {
        content: "";
        position: absolute;
        width: 390px;
        height: 390px;
        right: -150px;
        top: -125px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.13);
    }

    .login-visual::after {
        content: "";
        position: absolute;
        width: 285px;
        height: 285px;
        left: -115px;
        bottom: -110px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.09);
    }

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.08));
}

.login-visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 46px 42px 38px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.login-visual-logo {
    margin-bottom: 46px;
}

    .login-visual-logo img {
        display: block;
        width: 150px;
        height: auto;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }

.login-visual-text {
    margin-top: auto;
    margin-bottom: auto;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255,255,255,.68);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.login-visual-text h1 {
    margin: 0;
    color: #FFFFFF;
    font-size: 38px;
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.8px;
}

    .login-visual-text h1::after {
        content: "";
        display: block;
        width: 42px;
        height: 3px;
        margin-top: 16px;
        border-radius: 20px;
        background: #F4B400;
    }

.login-visual-text p {
    max-width: 335px;
    margin: 17px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.65;
}

.login-visual-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
}

    .login-visual-footer i {
        color: #F4B400;
        font-size: 13px;
    }

.login-form-panel {
    position: relative;
    padding: 58px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FFFFFF, #FCFDFE);
}

    .login-form-panel::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(33,79,136,.06), transparent 68%);
        pointer-events: none;
    }

.login-form-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 390px;
}

.login-modern-header {
    margin-bottom: 31px;
}

    .login-modern-header h2 {
        margin: 0;
        color: #0B1F3A;
        font-size: 30px;
        font-weight: 750;
        letter-spacing: -.5px;
    }

        .login-modern-header h2::after {
            content: "";
            display: block;
            width: 36px;
            height: 3px;
            margin-top: 12px;
            border-radius: 10px;
            background: #F4B400;
        }

    .login-modern-header p {
        margin: 11px 0 0;
        color: #64748B;
        font-size: 12px;
        line-height: 1.5;
    }

.login-mobile-brand {
    display: none;
}

.login-modern-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #F4C7CD;
    border-radius: 11px;
    background: #FFF3F4;
    color: #C73642;
    font-size: 11px;
    font-weight: 500;
}

    .login-modern-error i {
        flex-shrink: 0;
        font-size: 15px;
    }

.login-modern-form {
    width: 100%;
    margin: 0;
}

.login-modern-field {
    margin-bottom: 20px;
}

    .login-modern-field label {
        display: block;
        margin-bottom: 7px;
        color: #475569;
        font-size: 11px;
        font-weight: 650;
    }

.login-modern-input {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

    .login-modern-input > i {
        position: absolute;
        left: 15px;
        z-index: 2;
        color: #64748B;
        font-size: 15px;
        pointer-events: none;
    }

    .login-modern-input input {
        width: 100%;
        height: 52px;
        padding: 8px 15px 8px 44px;
        box-sizing: border-box;
        border: 1px solid #D6E0EA;
        border-radius: 12px;
        background: #F8FAFC;
        color: #172B4D;
        font-size: 13px;
        outline: none;
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
    }

        .login-modern-input input::placeholder {
            color: #9AA8B9;
        }

        .login-modern-input input:hover {
            border-color: #C2CFDD;
        }

        .login-modern-input input:focus {
            background: #FFFFFF;
            border-color: #3979C5;
            box-shadow: 0 0 0 4px rgba(57,121,197,.10);
        }

.login-modern-button {
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #08172C 0%, #173F70 60%, #245C9D 100%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11,31,58,.23);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

    .login-modern-button:hover {
        color: #FFFFFF;
        transform: translateY(-1px);
        filter: brightness(1.04);
        box-shadow: 0 12px 27px rgba(11,31,58,.28);
    }

    .login-modern-button:active {
        transform: translateY(0);
    }

    .login-modern-button i {
        font-size: 14px;
        transition: transform .15s ease;
    }

    .login-modern-button:hover i {
        transform: translateX(3px);
    }

.login-modern-footer {
    margin-top: 26px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #E8EDF3;
    text-align: center;
}

    .login-modern-footer i {
        color: #64748B;
        font-size: 11px;
    }

    .login-modern-footer span {
        color: #94A3B8;
        font-size: 9px;
    }

.login-mobile-identity {
    display: none;
}

@media (max-width: 850px) {
    .login-modern-page {
        min-height: 100vh;
        padding: 26px 18px;
        align-items: center;
        background: radial-gradient(circle at 88% 8%, rgba(66,137,217,.34), transparent 30%), radial-gradient(circle at 8% 90%, rgba(39,94,159,.30), transparent 34%), linear-gradient(155deg, #07172A 0%, #0B2341 50%, #214F88 100%);
    }

    .login-visual {
        display: none;
    }

    .login-modern-shell {
        width: 100%;
        max-width: 430px;
        min-height: auto;
        display: block;
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .login-form-panel {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        background: transparent;
    }

        .login-form-panel::before {
            display: none;
        }

    .login-mobile-identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        text-align: center;
    }

    .login-mobile-logo {
        display: block;
        width: 150px;
        height: auto;
        max-width: 150px;
        max-height: none;
        object-fit: contain;
    }

    .login-mobile-identity span {
        margin-top: 8px;
        color: rgba(255,255,255,.68);
        font-size: 9px;
        font-weight: 650;
        text-transform: uppercase;
        letter-spacing: .16em;
    }

    .login-mobile-identity::after {
        content: "";
        width: 32px;
        height: 2px;
        margin-top: 10px;
        border-radius: 10px;
        background: #F4B400;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: none;
        padding: 28px 24px 23px;
        box-sizing: border-box;
        border: 1px solid rgba(255,255,255,.45);
        border-radius: 21px;
        background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,254,.99));
        box-shadow: 0 24px 55px rgba(0,0,0,.22);
    }

    .login-modern-header {
        margin-bottom: 24px;
        text-align: left;
    }

        .login-modern-header h2 {
            font-size: 24px;
        }

            .login-modern-header h2::after {
                width: 30px;
                height: 2px;
                margin-top: 9px;
            }

        .login-modern-header p {
            margin-top: 9px;
            font-size: 11px;
        }

    .login-modern-input input {
        height: 47px;
        background: #F6F8FB;
    }

    .login-modern-button {
        min-height: 47px;
    }

    .login-modern-footer {
        margin-top: 21px;
        padding-top: 15px;
    }
}

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

    .login-modern-shell {
        max-width: 100%;
    }

    .login-mobile-identity {
        margin-bottom: 16px;
    }

    .login-mobile-logo {
        width: 132px;
        max-width: 132px;
    }

    .login-mobile-identity span {
        margin-top: 6px;
        font-size: 8px;
    }

    .login-form-wrapper {
        padding: 24px 19px 20px;
        border-radius: 18px;
    }

    .login-modern-header {
        margin-bottom: 21px;
    }

        .login-modern-header h2 {
            font-size: 21px;
        }

    .login-modern-field {
        margin-bottom: 16px;
    }

    .login-modern-input input {
        height: 44px;
        font-size: 12px;
    }

    .login-modern-button {
        min-height: 44px;
    }
}

@media (max-height: 650px) and (max-width: 850px) {
    .login-modern-page {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .login-mobile-identity {
        margin-bottom: 10px;
    }

    .login-mobile-logo {
        width: 105px;
        max-width: 105px;
    }

    .login-mobile-identity span {
        margin-top: 4px;
    }

    .login-form-wrapper {
        padding-top: 20px;
        padding-bottom: 17px;
    }

    .login-modern-header {
        margin-bottom: 17px;
    }

    .login-modern-footer {
        margin-top: 14px;
        padding-top: 11px;
    }
}


/* =========================================================
   ICONOS GENERALES
========================================================= */

.text-icon {
    color: #17365D !important;
}



/* =========================================================
   USER MENU - TOPBAR
========================================================= */

.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}


/* =========================================================
   BOTÓN DEL USUARIO
========================================================= */

.user-button {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--gsk-primary);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}


    .user-button:hover {
        background: #F1F5F9;
    }


    /* Icono de usuario */

    .user-button > i:first-child {
        font-size: 17px;
        color: var(--gsk-primary);
    }


/* Nombre del usuario */

.user-name {
    max-width: 260px;
    color: var(--gsk-text-muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Flecha */

.user-button > i:last-child {
    margin-left: 2px;
    font-size: 11px;
    color: var(--gsk-text-muted);
    transition: transform .2s ease;
}



/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 215px;
    background: white;
    border: 1px solid var(--gsk-border);
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(15,23,42,.15);
    overflow: hidden;
    z-index: 5000;
    animation: userMenuOpen .16s ease;
}


@keyframes userMenuOpen {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* =========================================================
   CABECERA DROPDOWN
========================================================= */

.dropdown-header {
    min-height: 54px;
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FAFBFC;
}


    .dropdown-header strong {
        color: var(--gsk-primary);
        font-size: 13px;
        font-weight: 600;
    }


    .dropdown-header small {
        margin: 0;
        color: var(--gsk-text-muted);
        font-size: 12px;
        font-weight: 500;
    }



/* =========================================================
   DIVISOR
========================================================= */

.dropdown-divider {
    width: 100%;
    height: 1px;
    background: var(--gsk-border);
}



/* =========================================================
   FORMULARIO LOGOUT
========================================================= */

.dropdown-content form {
    margin: 0;
}



/* =========================================================
   CERRAR SESIÓN
========================================================= */

.logout-option {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gsk-danger);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}


    .logout-option i {
        width: 18px;
        font-size: 16px;
        text-align: center;
    }


    .logout-option:hover {
        background: #FFF5F5;
        color: #C62828;
    }



/* =========================================================
   BOTÓN GUARDAR
========================================================= */

.btn-save {
    min-height: 42px;
    padding: 10px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 135deg, #08172C, #214F88 );
    color: white;
    font-weight: 500;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}


    .btn-save:hover {
        opacity: .92;
        transform: translateY(-1px);
        box-shadow: 0 5px 14px rgba(8,23,44,.18);
    }


    .btn-save:active {
        transform: translateY(0);
    }



/* =========================================================
   RESPONSIVE - USER MENU
========================================================= */

@media (max-width: 768px) {

    .user-button {
        min-height: 40px;
        padding: 6px 8px;
        gap: 6px;
    }

    /* Ocultar nombre del usuario */
    .user-name {
        display: none !important;
    }

    /* Icono usuario */
    .user-button > i:first-child {
        font-size: 19px;
    }

    /* Flecha */
    .user-button > i:last-child {
        font-size: 10px;
        margin-left: 0;
    }

    .dropdown-content {
        width: 200px;
        top: calc(100% + 6px);
        right: 0;
    }

    .dropdown-header {
        min-height: 48px;
        padding: 11px 14px;
    }

        .dropdown-header small {
            font-size: 11px;
        }

    .logout-option {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 12px;
    }
}
/* =========================================================
   MODAL HORARIO
========================================================= */

.schedule-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 6000;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 23, 42, .58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: scheduleBackdropIn .16s ease;
}


@keyframes scheduleBackdropIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   DIALOG
========================================================= */

.schedule-modal-dialog {
    width: 100%;
    max-width: 520px;
    animation: scheduleModalIn .18s ease;
}


@keyframes scheduleModalIn {

    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   CONTENT
========================================================= */

.schedule-modal-content {
    width: 100%;
    overflow: hidden;
    border: 1px solid #D8E3EF;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 24px 65px rgba(0,0,0,.25);
}


/* =========================================================
   HEADER
========================================================= */

.schedule-modal-header {
    min-height: 72px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #C9D8E8;
    background: linear-gradient( 90deg, #EAF2FB, #DDEAF8 );
}


.schedule-modal-header-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}


.schedule-modal-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #CFE2F7;
    color: #1769C2;
    font-size: 17px;
}


.schedule-modal-header h2 {
    margin: 0;
    color: var(--gsk-primary);
    font-size: 15px;
    font-weight: 700;
}


.schedule-modal-header span {
    display: block;
    margin-top: 2px;
    color: #64748B;
    font-size: 10px;
}


/* =========================================================
   CERRAR
========================================================= */

.schedule-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}


    .schedule-modal-close:hover {
        background: rgba(255,255,255,.70);
        color: var(--gsk-primary);
    }


/* =========================================================
   BODY
========================================================= */

.schedule-modal-body {
    padding: 22px 20px 20px;
}


.schedule-field-help {
    display: block;
    margin-top: 6px;
    color: #94A3B8;
    font-size: 10px;
}


/* =========================================================
   ESTADO
========================================================= */

.schedule-status {
    margin-top: 4px;
}


/* =========================================================
   MENSAJES
========================================================= */

.schedule-modal-message {
    margin-top: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}


.schedule-message-success {
    border: 1px solid #BDE8CE;
    background: #EAF9F0;
    color: #168149;
}


.schedule-message-error {
    border: 1px solid #F4C7CD;
    background: #FFF2F3;
    color: #C73642;
}


/* =========================================================
   FOOTER
========================================================= */

.schedule-modal-footer {
    padding: 14px 20px 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid #E8EDF3;
    background: #FBFCFE;
}


/* =========================================================
   BOTÓN SECUNDARIO
========================================================= */

.schedule-btn-secondary {
    min-height: 42px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #D4DEE9;
    border-radius: 10px;
    background: #FFFFFF;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}


    .schedule-btn-secondary:hover {
        background: #F1F5F9;
        border-color: #C3CEDA;
        color: var(--gsk-primary);
    }


    .schedule-btn-secondary:disabled,
    .schedule-btn-save:disabled {
        opacity: .60;
        cursor: not-allowed;
        transform: none;
    }


.schedule-btn-save {
    min-width: 145px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .schedule-modal-backdrop {
        padding: 14px;
    }


    .schedule-modal-dialog {
        max-width: 100%;
    }


    .schedule-modal-content {
        border-radius: 15px;
    }


    .schedule-modal-header {
        min-height: 66px;
        padding: 13px 15px;
    }


    .schedule-modal-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 15px;
    }


    .schedule-modal-header h2 {
        font-size: 14px;
    }


    .schedule-modal-header span {
        font-size: 9px;
    }


    .schedule-modal-body {
        padding: 18px 15px 16px;
    }


    .schedule-modal-footer {
        padding: 12px 15px 15px;
        flex-direction: column-reverse;
    }


    .schedule-btn-secondary,
    .schedule-btn-save {
        width: 100%;
    }
}