/* Fondo con GIF y superposición */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    min-height: 100vh;

    background-image: url('img/aidan-yelamos-berbel-footballnight.gif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;

    overflow-y: auto;
    /* permitir scroll vertical */
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}


.registro-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;

    margin: 60px auto;
    /* centrado horizontal y espacio arriba/abajo */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 1rem;
    color: #333;
}

/* Botón Google */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background-color: #f0f0f0;
}

.google-btn img {
    width: 20px;
    margin-right: 10px;
}

/* Separador */
.separator {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #222;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

/* Botón registrar */
.btn {
    background: #0052cc;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #003d99;
}

/* Enlace inferior */
.link {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #0052cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    text-decoration: underline;
    color: #003d99;
}

/* Responsivo */
@media (max-width: 768px) {
    .registro-container {
        width: 90%;
        max-width: 100%;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    input,
    .btn,
    .google-btn {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Botón Registrar */
button[type="submit"] {
    background-color: #0052cc;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #003d99;
}

/* Botón Agregar Horario */
button[type="button"] {
    background-color: #28a745;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button[type="button"]:hover {
    background-color: #218838;
}

/* Botón Eliminar dentro del horario */
.horario button {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.horario button:hover {
    background-color: #c82333;
}

/* Ocultar input de archivo original */
input[type="file"] {
    display: none;
}

/* Estilo personalizado para el botón de subir archivo */
.custom-file-label {
    display: inline-block;
    background-color: #6c63ff;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.custom-file-label:hover {
    background-color: #5548d8;
}

/* Ajustar botones al 100% de ancho en pantallas pequeñas */
@media (max-width: 768px) {

    button[type="button"],
    .custom-file-label {
        width: 100%;
        box-sizing: border-box;
    }

    .custom-file-label {
        text-align: center;
    }
}