﻿:root {
    --uv-primary: #0b3c5d;
    --uv-primary-dark: #062a43;
    --uv-secondary: #328cc1;
    --uv-accent: #67c6e3;
    --uv-surface: #ffffff;
    --uv-text: #172033;
    --uv-muted: #697386;
    --uv-border: #dbe3ec;
    --uv-danger: #b42318;
    --uv-danger-background: #fef3f2;
    --uv-shadow: 0 28px 70px rgba(0, 24, 45, 0.32);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}
    body.login-body {
        margin: 0;
        min-height: 100vh;
        color: var(--uv-text);
        font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        background: radial-gradient( circle at 15% 20%, rgba(103, 198, 227, 0.24), transparent 30% ), radial-gradient( circle at 85% 85%, rgba(50, 140, 193, 0.28), transparent 34% ), linear-gradient( 145deg, var(--uv-primary-dark) 0%, var(--uv-primary) 52%, #0d547d 100% );
    }
   

button,
input {
    font: inherit;
}

/* Logo*/

.login-brand-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.login-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-title {
    color: #EAF5FF;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand-system {
    margin-top: 6px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}


/* 
   CONTENEDOR GENERAL
    */

.login-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 42px 20px;
    overflow: hidden;
}

    /* Círculos decorativos del fondo */

    .login-page::before,
    .login-page::after {
        position: fixed;
        z-index: 0;
        content: "";
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 50%;
        pointer-events: none;
    }

    .login-page::before {
        top: -230px;
        right: -170px;
        width: 560px;
        height: 560px;
    }

    .login-page::after {
        bottom: -320px;
        left: -160px;
        width: 700px;
        height: 700px;
    }

/* 
   ENCABEZADO DEL SISTEMA
    */

.login-information-panel {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 620px;
    min-height: auto;
    padding: 0;
    margin: 0 0 28px;
    color: #ffffff;
    background: transparent;
}

    .login-information-panel::before,
    .login-information-panel::after {
        display: none;
    }

.login-information-content {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;
}

.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}



.welcome-content,
.information-footer {
    display: none;
}

/* 
   ZONA DEL FORMULARIO
    */

.login-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: auto;
    padding: 0;
    background: transparent;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--uv-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: login-card-entry 0.45s ease-out both;
}



.mobile-brand {
    display: none;
}

/* 
   ENCABEZADO DE LA TARJETA
   */

.login-card-header {
    margin-bottom: 30px;
    text-align: left;
}

.login-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--uv-secondary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-card-header h2 {
    margin: 0 0 9px;
    color: var(--uv-text);
    font-size: 2rem;
    font-weight: 780;
    letter-spacing: -0.04em;
}

.login-card-header p {
    margin: 0;
    color: var(--uv-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* 
   FORMULARIO
    */

.login-form {
    display: grid;
    gap: 21px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    margin: 0;
    color: #344054;
    font-size: 0.86rem;
    font-weight: 680;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #8a96a8;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input {
    width: 100%;
    min-height: 54px;
    padding: 13px 48px;
    border: 1px solid var(--uv-border);
    border-radius: 13px;
    background: #ffffff;
    color: var(--uv-text);
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

    .login-input::placeholder {
        color: #9aa5b4;
    }

    .login-input:hover {
        border-color: #b7c5d5;
    }

    .login-input:focus {
        border-color: var(--uv-secondary);
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(50, 140, 193, 0.12);
    }

/* 
   BOTÓN MOSTRAR CONTRASEÑA
   */

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7d899a;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.16s ease, background-color 0.16s ease;
}

    .password-toggle:hover,
    .password-toggle:focus-visible {
        background: #edf4f8;
        color: var(--uv-primary);
        outline: none;
    }
  

/* 
   BOTÓN INICIAR SESIÓN
    */

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 55px;
    margin-top: 2px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient( 135deg, var(--uv-primary) 0%, #0e608c 100% );
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(11, 60, 93, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

    .btn-login:hover {
        color: #ffffff;
        box-shadow: 0 17px 32px rgba(11, 60, 93, 0.34);
        filter: brightness(1.04);
        transform: translateY(-2px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        cursor: wait;
        opacity: 0.82;
        transform: none;
    }

    .btn-login i {
        transition: transform 0.16s ease;
    }

    .btn-login:hover i {
        transform: translateX(3px);
    }

/* 
   VALIDACIONES
    */

.validation-summary {
    display: none;
    padding: 13px 15px;
    border: 1px solid #f5c2c0;
    border-radius: 11px;
    background: var(--uv-danger-background);
    color: var(--uv-danger);
    font-size: 0.84rem;
    line-height: 1.5;
}

    .validation-summary.validation-summary-errors {
        display: block;
    }

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

.field-validation {
    min-height: 18px;
    color: var(--uv-danger);
    font-size: 0.79rem;
}

.input-validation-error {
    border-color: #e48b85;
    background: #fffafa;
}

    .input-validation-error:focus {
        border-color: var(--uv-danger);
        box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
    }

/* 
   MENSAJE 
    */

.login-support {
    display: flex;
    gap: 12px;
    margin-top: 27px;
    padding: 14px 15px;
    border: 1px solid #e2eaf2;
    border-radius: 13px;
    background: #f8fafc;
}

    .login-support i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--uv-secondary);
    }

    .login-support p {
        margin: 0;
        color: var(--uv-muted);
        font-size: 0.76rem;
        line-height: 1.55;
    }



/* 
   ANIMACIONES
    */

@keyframes login-card-entry {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* 
   ACCESIBILIDAD
   */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
