body {
    font-family: 'Roboto', sans-serif;
    background: url('img/Y.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

header {
    background-color: #19437D; /* Color azul elegante */
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

header .logo {
    width: 200px; /* Ajusta el ancho del logo */
    height: auto; /* Mantiene la proporción del logo */
    margin-right: 20px; /* Espacio entre el logo y el menú */
}

header .menu {
    flex-grow: 1; /* Permite que el menú ocupe el espacio restante */
}

header .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start; /* Alinea los elementos del menú a la izquierda */
}

header .menu ul li {
    margin: 0 15px;
}

header .menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

header .menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: white;
    transition: width 0.3s ease, background-color 0.3s ease;
}

header .menu ul li a:hover::after {
    width: 100%;
    left: 0;
    background: #f1c40f;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.form-content h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    color: #333;
    font-size: 16px;
}

.input-box label {
    position: absolute;
    top: 10px;
    left: 0;
    pointer-events: none;
    transition: 0.5s;
    color: #333;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #007BFF;
    font-size: 12px;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    justify-content: center;
}

/* Media Queries for Small Screens */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
        margin: 5px;
    }

    .input-box input {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px;
    }
}
