/* Estilo general para el formulario */
body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    background: linear-gradient(150deg, #6c3483, #58D68D);
    height: 100vh;
    margin-top: 50px; /* Ajuste para el espacio bajo el encabezado */
}

.formulario {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.formulario h1 {
    text-align: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid silver;
}

.formulario form {
    padding: 0 40px;
    box-sizing: border-box;
}

form .username, form .contrasena {
    position: relative;
    border-bottom: 2px solid #adadad;
    margin: 30px 0;
}

.username input, .contrasena input {
    width: 100%;
    padding: 0 5px;
    height: 40px;
    font-size: 16px;
    border: none;
    background: none;
    outline: none;
}

.username label, .contrasena label {
    position: absolute;
    top: 50%;
    left: 5px;
    color: #adadad;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    transition: .5s;
}

.username span::before, .contrasena span::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6c3483;
    transition: .5s;
}

.username input:focus ~ label, .contrasena input:focus ~ label {
    top: -5px;
    color: #6C3483;
}

.username input:focus ~ span::before, .contrasena input:focus ~ span::before {
    width: 100%;
}

.recordar {
    margin: -5px 0 20px 5px;
    color: blue;
    cursor: pointer;
}

.recordar:hover {
    text-decoration: underline;
}

input[type="submit"] {
    width: 100%;
    height: 50px;
    border: 1px solid;
    background: #6C3483;
    border-radius: 25px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    outline: none;
}

input[type="submit"]:hover {
    border-color: purple;
    transition: .5s;
}

.registrarse {
    margin: 30px 0;
    text-align: center;
    font-size: 16px;
    color: black;
}

.registrarse a {
    color: blue;
    text-decoration: none;
}

.registrarse a:hover {
    text-decoration: underline;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(150deg, #6c3483, #58D68D);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
    z-index: 1000;
}

/* Contenedor de logo y menú */
.logo-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    height: 50px;
}

/* Estilos del menú */
header nav ul {
    display: flex;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #6c3483;
}

/* Contenedor para los botones de autenticación */
.auth-buttons {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.auth-buttons a {
    color: white;
    background-color: #2ecc71;
    padding: 10px 50px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.auth-buttons a:hover {
    background-color: #27ae60;
}

/* Ajuste de margen superior para el contenido debajo del menú fijo */
body {
    margin-top: 50px;
}

/* Botón de Google */
.google-login {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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