@font-face {
    font-family: Gilroy-Regular;
    src: url(../fonts/Gilroy-Regular.ttf);
}
@font-face {
    font-family: Gilroy-Black;
    src: url(../fonts/Gilroy-Black.ttf);
}
@font-face {
    font-family: Gilroy-Bold;
    src: url(../fonts/Gilroy-Bold.ttf);
}
@font-face {
    font-family: Gilroy-Medium;
    src: url(../fonts/Gilroy-Medium.ttf);
}
@font-face {
    font-family: Gilroy-SemiBold;
    src: url(../fonts/Gilroy-SemiBold.ttf);
}
@font-face {
    font-family: Gilroy-Ultralight;
    src: url(../fonts/Gilroy-UltraLight.ttf);
}
@font-face {
    font-family: Gilroy-Heavy;
    src: url(../fonts/Gilroy-Heavy.ttf);
}

body {
    font-family: Gilroy-Regular, sans-serif;
    background: rgb(255, 255, 255);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1rem 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/bg-header.png);
    opacity: 0.03;
    z-index: 0;
}
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/home_top.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: zoomBackground 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes zoomBackground {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
}


@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.login-container {
    background: linear-gradient(145deg, rgb(0 0 0 / 98%) 0%, rgb(0 0 0 / 95%) 100%);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(177, 178, 182, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(177, 178, 182, 0.15);
    min-height: fit-content;
    box-sizing: border-box;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.login-header::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f4298c, #00bcf1, #ff8108);
    border-radius: 2px;
}

.login-header h1 {
    color: #ffffff;
    font-family: Gilroy-Heavy, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.login-header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #b1b2b6;
    border-radius: 1px;
}

.login-header p {
    color: #ffffff;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    color: #ffffff;
    font-family: Gilroy-Bold, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 15px;
}

.form-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #f4298c, #00bcf1);
    border-radius: 50%;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid transparent;
    border-radius: 16px;
    font-family: Gilroy-Regular, sans-serif;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #b1b2b6, #4a595b) border-box;
    position: relative;
}

.form-input:focus {
    outline: none;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #f4298c, #00bcf1) border-box;
    box-shadow: 
        0 10px 25px rgba(244, 41, 140, 0.15),
        0 0 0 4px rgba(244, 41, 140, 0.05);
    transform: translateY(-2px);
}

.form-input:hover:not(:focus) {
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #4a595b, #241f20) border-box;
}

.input-icon-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a595b;
    pointer-events: none;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.form-input:focus ~ .input-icon {
    color: #f4298c;
    transform: translateY(-50%) scale(1.1);
}

.form-input-with-icon {
    padding-left: 3.5rem;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #241f20 0%, #4a595b 50%, #241f20 100%);
    color: white;
    padding: 1.25rem;
    border: none;
    border-radius: 16px;
    font-family: Gilroy-Bold, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(36, 31, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 41, 140, 0.4), rgba(0, 188, 193, 0.4), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 41, 140, 0.1), rgba(0, 188, 193, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f4298c 0%, #00bcf1 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(244, 41, 140, 0.4),
        0 5px 15px rgba(0, 188, 193, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-color: #fecaca;
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    border-color: #bbf7d0;
}

.login-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(177, 178, 182, 0.3);
}

.login-footer a {
    color: #f4298c;
    text-decoration: none;
    font-family: Gilroy-Medium, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #b62068;
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: #f4298c;
    transform: scale(1.2);
}

.remember-me label {
    font-family: Gilroy-Medium, sans-serif;
    font-size: 0.9rem;
    color: #4a595b;
    cursor: pointer;
}

.logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #000000 0%, #6c757d 50%, #000000 100%);
    border-radius: 24px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    box-shadow: 
        0 15px 35px rgba(74, 89, 91, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(177, 178, 182, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(244, 41, 140, 0.1) 50%, rgba(0, 188, 193, 0.1) 70%, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo:hover {
    background: linear-gradient(135deg, #f4298c 0%, #00bcf1 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(244, 41, 140, 0.2),
        0 10px 20px rgba(0, 188, 193, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logo:hover::before {
    transform: translateX(100%);
}

@keyframes logoShine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Botón toggle para mostrar/ocultar contraseña */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(177, 178, 182, 0.3);
    color: #4a595b;
    cursor: pointer;
    padding: 0.5rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.password-toggle:hover {
    color: #f4298c;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-color: rgba(244, 41, 140, 0.3);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(244, 41, 140, 0.2);
}

/* Animación para inputs con foco */
.input-focus-scale {
    transform: scale(1.02) translateY(-2px);
    transition: transform 0.3s ease;
}

/*-----------
preloader
------------*/

#preloader {
    height: 100vh;
    width: 100vw;
    font-family: Gilroy-Heavy, sans-serif;
    background: #000;
    font-size: 23px;
    color: #fff;
    z-index: 5003;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    height: 20px;
    width: 250px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.loader--dot {
    animation-name: loader;
    animation-timing-function: ease-in-out;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    background-color: black;
    position: absolute;
}

.loader--dot:first-child {
    background-color: #241f20;
    animation-delay: 0.5s;
}

.loader--dot:nth-child(2) {
    background-color: #b1b2b6;
    animation-delay: 0.4s;
}

.loader--dot:nth-child(3) {
    background-color: #00bcf1;
    animation-delay: 0.3s;
}

.loader--dot:nth-child(4) {
    background-color: #4a595b;
    animation-delay: 0.2s;
}

.loader--dot:nth-child(5) {
    background-color: #ff8108;
    animation-delay: 0.1s;
}

.loader--dot:nth-child(6) {
    background-color: #f4298c;
    animation-delay: 0s;
}

.loader--text {
    position: absolute;
    top: 200%;
    left: 0;
    right: 0;
    width: 14rem;
    margin: auto;
    font-family: Gilroy-Heavy, sans-serif;
    text-align: center;
    font-size: 18px;
}

.loader--text:after {
    content: "CARGANDO";
    animation-name: loading-text;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    color: #fff;
}

@keyframes loader {
    15% {
        transform: translateX(0);
    }
    45% {
        transform: translateX(230px);
    }
    65% {
        transform: translateX(230px);
    }
    95% {
        transform: translateX(0);
    }
}

@keyframes loading-text {
    0% {
        content: "CARGANDO";
    }
    25% {
        content: "CARGANDO.";
    }
    50% {
        content: "SISTEMA DE GESTIÓN..";
    }
    75% {
        content: "SISTEMA DE GESTIÓN...";
    }
}

/* Animación de carga */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
    
    .btn-primary {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Efectos adicionales */
.form-input::placeholder {
    color: #b1b2b6;
    font-family: Gilroy-Regular, sans-serif;
}

.form-input:hover {
    border-color: #4a595b;
}

/* Animación para los iconos */
.input-icon {
    transition: all 0.3s ease;
}

.form-input:focus + .input-icon {
    color: #f4298c;
    transform: translateY(-50%) scale(1.1);
}

/* Agregar estos estilos al final de tu archivo login.css */

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #3b82f6;
    transform: translateY(-1px);
}

.forgot-password a i {
    transition: transform 0.3s ease;
}

.forgot-password a:hover i {
    transform: scale(1.1);
}