@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --roboto: 'Roboto', sans-serif;
    --corporate-teal: #25acbc;
    --corporate-blue: #0157a3;
    --corporate-blue-dark: #0157a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 172, 188, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 87, 163, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(37, 172, 188, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* CONTENEDOR PRINCIPAL */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* CONTENEDOR PRINCIPAL DE LOGIN */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    width: 100%;
    min-height: 500px;
}

/* CONTENEDOR TITULO Y LOGO */
.container .title-logo {
    background: linear-gradient(135deg, var(--corporate-teal) 0%, var(--corporate-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
}

.container .title-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* TITULO */
.container .title-logo h1 {
    color: white;
    font-family: var(--roboto);
    font-weight: 700;
    margin: 0;
    font-size: 36px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* CONTENEDOR TITLE */
.container .title-logo .back-title {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: start;
    margin-bottom: 40px;
}

/* CONTENEDOR LOGO */
.container .title-logo .back-logo {
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
    z-index: 1;
}

/* IMAGEN CONTENEDOR LOGO */
.container .title-logo .back-logo img {
    width: 140px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* CONTENEDOR USERNAMEE (formulario) */
.usernamee {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    font-family: var(--roboto);
    font-weight: 700;
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--corporate-teal) 0%, var(--corporate-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-family: var(--roboto);
    font-weight: 400;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.usernamee form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 320px;
}

.usernamee form label {
    font-family: var(--roboto);
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 5px;
}

.usernamee form input {
    width: 320px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 20px;
    font-family: var(--roboto);
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.usernamee form input:focus {
    outline: none;
    border-color: var(--corporate-teal);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 172, 188, 0.1);
    transform: translateY(-2px);
}

.usernamee form input:hover {
    border-color: #d1d5db;
    background-color: white;
}

.usernamee form .back-btn {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.usernamee form .back-btn button {
    width: 320px;
    height: 50px;
    background: linear-gradient(135deg, var(--corporate-teal) 0%, var(--corporate-blue) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--roboto);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(37, 172, 188, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.usernamee form .back-btn button:hover {
    background: linear-gradient(135deg, var(--corporate-blue) 0%, var(--corporate-teal) 100%);
    box-shadow: 0 12px 35px rgba(37, 172, 188, 0.4);
    transform: translateY(-3px);
}

.usernamee form .back-btn button:active {
    transform: translateY(-1px) scale(.98);
    box-shadow: 0 4px 15px rgba(37, 172, 188, 0.3);
}
/* CONTENEDOR USERNAMEE (formulario) */

/* ESTILO CONTENEDOR DE ERROR */
.alert {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 15px;
    margin: 20px auto; /* Centrar horizontalmente */
    border-radius: 5px;
    text-align: center; /* Centra el texto */
    width: 300px; /* Ancho reducido */
    position: absolute; /* Posiciona de forma absoluta */
    top: -100px; /* Comienza fuera de la vista */
    left: 50%; /* Centrado horizontalmente */
    transform: translateX(-50%); /* Ajuste para centrar exactamente */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
    transition: top 0.5s ease-in-out; /* Animación de entrada/salida */
}

.alert ul {
    list-style: none;
}

.alert.show {
    top: 20px; /* Posición cuando se muestra */
}
/* ESTILO CONTENEDOR DE ERROR */

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 20px;
    }
    
    .container .title-logo {
        padding: 30px 20px;
        text-align: center;
        order: 2;
    }
    
    .container .title-logo h1 {
        font-size: 28px;
        margin: 0 0 20px 0;
    }
    
    .container .title-logo .back-logo img {
        width: 100px;
    }
    
    .usernamee {
        padding: 30px 20px;
        order: 1;
    }
    
    .usernamee form input {
        width: 100%;
        max-width: 300px;
    }
    
    .usernamee form .back-btn button {
        width: 100%;
        max-width: 300px;
    }
}

@media (min-width: 1100px) {
    .container .title-logo .back-title {
        margin-left: 70px;
    }
}
