body {
    background: url('../image/Asistencia.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.main-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* 📍 Mueve el formulario a la derecha */
    padding-right: 5%;
}

/* Contenedor del formulario */
.form-wrapper {
    max-width: 400px;
    width: 100%;
}

/* ✅ Fondo sutil verde transparente */
.login-box {
    background: linear-gradient(to bottom right, rgba(168, 224, 99, 0.6), rgba(86, 171, 47, 0.6));
    backdrop-filter: blur(3px);
    /* efecto suave detrás */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: fadeIn 1s ease-in-out;
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón */
.btn-custom {
    background-color: #4facfe;
    color: white;
    transition: background 0.3s ease;
}

.btn-custom:hover {
    background-color: #00c3ff;
}

/* Error */
.error {
    color: #e74c3c;
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 10px;
}

/* 🖼️ Imágenes flotantes */
.floating-img {
    position: absolute;
    z-index: 20;
    animation: fadeIn 1s ease-in-out;
}

.floating-img img {
    width: 190px;
    height: 70px;
    opacity: 0.95;
}

/* Imágenes superiores más unidas */
.top-img.img1 {
    top: 20px;
    left: 40px;
}

.top-img.img2 {
    top: 20px;
    right: 40px;
}

/* Imagen inferior más abajo del logo */
.bottom-img {
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    /* ❌ Sin borde */
    outline: none;
    color: #000000;
    font-size: 18px;
    text-align: center;
    /* ✅ Centrado del texto */
    padding: 5px 0;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.form-input::placeholder {
    color: rgba(20, 20, 20, 0.8);
    transition: opacity 0.3s ease-in-out;
}

.form-input:focus::placeholder {
    opacity: 0;
}


.login-box {
    color: #0c0c0c;
    /* para que el texto por defecto sea blanco */
}

.form-group-icon {
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
    border-bottom: 2px solid rgba(24, 83, 115, 0.7);
    /* ✅ Línea blanca estable */
    margin-bottom: 1.5rem;
}

.form-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

h2 {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.btn{
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
}

.btn:hover {
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.animated-alert {
    background-color: rgba(255, 244, 206, 0.95);
    color: #a65c00;
    border: 1px solid #ffc107;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease, fadeOut 0.5s ease 4s forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}
