* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        linear-gradient(rgba(117, 89, 59, 0.82), rgba(243, 205, 168, 0.75)),
        url("/qhalikaynut/img/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    color: #fdf9f6;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: 0.3s;
    z-index: 10;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.login-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    padding: 36px 32px;
    border-radius: 24px;
    text-align: center;
    border: 2px solid rgba(243, 205, 168, 0.6);
    box-shadow:
        0 0 40px rgba(117, 89, 59, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.2);
    animation: aparecer 0.6s ease;
}

.logo-img {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f3cda8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: flotar 3s ease-in-out infinite;
}

.login-container h1 {
    font-size: 1.35em;
    color: #fdf9f6;
    margin-bottom: 6px;
    line-height: 1.4;
}

.login-container h1 span {
    color: #f3cda8;
    font-weight: 700;
}

.subtitulo {
    color: rgba(253, 249, 246, 0.85);
    font-size: 0.85em;
    margin-bottom: 20px;
}

.mensaje {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 16px;
    animation: aparecer 0.4s ease;
}

.error {
    background-color: rgba(186, 26, 26, 0.25);
    color: #fff;
    border: 1px solid #fca5a5;
}

.input-group {
    text-align: left;
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82em;
    font-weight: 600;
    color: #fdf9f6;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    font-size: 0.9em;
    transition: 0.3s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    border-color: #f3cda8;
    box-shadow: 0 0 0 3px rgba(243, 205, 168, 0.35);
    background: rgba(255, 255, 255, 0.22);
}

button[type="submit"] {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f3cda8, #e5c09c);
    color: #75593b;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(117, 89, 59, 0.35);
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .login-container {
        max-width: 100%;
        padding: 28px 22px;
    }

    .back-home {
        top: 12px;
        left: 12px;
        font-size: 0.75rem;
        padding: 8px 14px;
    }
}
