/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f1f1ef;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* Contenedor principal que ocupa toda la pantalla */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 1rem;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 
                 -2px -2px 4px rgba(0, 0, 0, 0.1);
}

/* Contenedor del logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: -3rem;
    width: 100px;
}

.logo-image {
    width: 100px;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.logo-container img {
    width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
}

h3 {
    margin: 0;
}

/* Contenedor principal */
#login-container {
    background: #f1f1ef;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 
        12px 12px 25px rgba(163, 177, 198, 0.6),
        -12px -12px 25px rgba(255, 255, 255, 0.9),
        inset 2px 2px 5px rgba(255, 255, 255, 0.3),
        inset -2px -2px 5px rgba(163, 177, 198, 0.2);
    width: 100%;
    max-width: 420px;
    margin: 2rem;
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s ease;
}

#login-container:hover {
    box-shadow: 
        15px 15px 30px rgba(163, 177, 198, 0.7),
        -15px -15px 30px rgba(255, 255, 255, 1),
        inset 3px 3px 8px rgba(255, 255, 255, 0.4),
        inset -3px -3px 8px rgba(163, 177, 198, 0.3);
    transform: translateY(-2px);
}

.sign-in-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0rem;
    color: #5a6c7d;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Estilos del formulario */
.login-form {
    display: flex;
    flex-direction: column;
}

.email-input,
.password-input {
    margin-bottom: 1.5rem;
}

.header-text {
    font-size: 0.9rem;
    color: #5a6c7d;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

input[type="email"],
input[type="password"] {
    width: calc(100% - 2.5rem);
    padding: 1rem 0.8rem;
    padding-left: 2.8rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    color: #2c3e50;
    background: #f1f1ef;
    box-shadow: 
        inset 6px 6px 12px rgba(163, 177, 198, 0.4),
        inset -6px -6px 12px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Estilos para autocompletado del navegador */
input[type="email"]:-webkit-autofill,
input[type="password"]:-webkit-autofill {
    -webkit-text-fill-color: #007bff !important;
    -webkit-box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    background-color: #f1f1ef !important;
    transition: all 0.3s ease;
}

input[type="email"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:hover {
    -webkit-text-fill-color: #007bff !important;
    -webkit-box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

input[type="email"]:-webkit-autofill:focus,
input[type="password"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #007bff !important;
    -webkit-box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

/* Compatibilidad con otros navegadores */
input[type="email"]:-moz-autofill,
input[type="password"]:-moz-autofill {
    color: #007bff !important;
    background-color: #f1f1ef !important;
    box-shadow: 
        inset 8px 8px 15px rgba(163, 177, 198, 0.5),
        inset -8px -8px 15px rgba(255, 255, 255, 0.9),
        0 0 0 3px rgba(0, 123, 255, 0.1) !important;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Íconos */
.email-icon,
.password-icon {
    position: absolute;
    margin-left: 0.8rem;
    margin-top: 1rem;
    color: #a0aec0;
    font-size: 1.1rem;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        -1px -1px 2px rgba(163, 177, 198, 0.3);
    transition: all 0.3s ease;
}

/* Contenedor para campos */
.email-input,
.password-input {
    position: relative;
}

.forgot-password-container {
    text-align: right;
}

.forgot-password {
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #0056b3;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.8),
        0 0 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

/* Botón de iniciar sesión */
.login-button-container {
    text-align: center;
}

.login-button {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    width: 100%;
    box-shadow: 
        6px 6px 12px rgba(0, 86, 179, 0.3),
        -6px -6px 12px rgba(0, 123, 255, 0.3),
        inset 2px 2px 5px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.login-button:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    box-shadow: 
        8px 8px 15px rgba(0, 86, 179, 0.4),
        -8px -8px 15px rgba(0, 123, 255, 0.4),
        inset 3px 3px 8px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Cambiar el color del ícono cuando el input está en hover o focus */
.email-input:hover .email-icon,
.email-input:focus-within .email-icon,
.password-input:hover .password-icon,
.password-input:focus-within .password-icon {
    color: #007bff;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.9),
        -1px -1px 3px rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

.login-button:active {
    background: linear-gradient(145deg, #004085, #003366);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 64, 133, 0.4),
        inset -4px -4px 8px rgba(0, 86, 179, 0.2);
    transform: translateY(1px);
}

/* ---- MEDIA QUERIES ---- */

/* Tablets y pantallas pequeñas */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #login-container {
        padding: 2rem;
        margin: 1rem;
        box-shadow: 
            8px 8px 16px rgba(163, 177, 198, 0.5),
            -8px -8px 16px rgba(255, 255, 255, 0.8),
            inset 1px 1px 3px rgba(255, 255, 255, 0.2),
            inset -1px -1px 3px rgba(163, 177, 198, 0.1);
    }

    input[type="email"],
    input[type="password"] {
        font-size: 0.9rem;
        padding: 0.8rem 0.6rem;
        padding-left: 2.5rem;
    }

    .login-button {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Dispositivos móviles (menos de 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .sign-in-text {
        font-size: 1rem;
    }

    .logo-container img {
        width: 90px;
    }

    #login-container {
        padding: 1.5rem;
        margin: 0.5rem;
        box-shadow: 
            6px 6px 12px rgba(163, 177, 198, 0.4),
            -6px -6px 12px rgba(255, 255, 255, 0.7),
            inset 1px 1px 2px rgba(255, 255, 255, 0.1),
            inset -1px -1px 2px rgba(163, 177, 198, 0.05);
    }

    input[type="email"],
    input[type="password"] {
        font-size: 0.9rem;
        padding: 0.8rem 0.6rem;
        padding-left: 2.3rem;
    }

    .login-button {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .email-icon,
    .password-icon {
        margin-left: 0.6rem;
        margin-top: 0.8rem;
    }
}

/* Footer */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1ef;
    position: relative;
    margin-top: auto;
}

.footer-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.footer-content:hover {
    box-shadow: none;
    transform: none;
}

.footer-text {
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.3px;
}

.golden-bytes-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 
        1px 1px 2px rgba(255, 255, 255, 0.8),
        0 0 5px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.golden-bytes-link:hover {
    color: #0056b3;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.9),
        0 0 8px rgba(0, 123, 255, 0.4),
        0 0 12px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
}

.golden-bytes-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: all 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

.golden-bytes-link:hover::after {
    width: 100%;
    left: 0;
}

/* Responsive para footer */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        padding: 0;
        box-shadow: none;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0;
    }
    
    .footer-text {
        font-size: 0.75rem;
        text-align: center;
    }
}