/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
}
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; /* Espacio entre el logo y el menú */
}

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; /* Mueve los botones al extremo derecho */
}

.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; /* Ajusta este valor según la altura del encabezado */
}
/* Formulario de Registro */
.registration-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.registration-form:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.registration-form h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.registration-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

.registration-form input, .registration-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    background-color: #fafafa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.registration-form input:focus, .registration-form select:focus {
    outline: none;
    border-color: #58D68D;
    background-color: #e8f5e9;
}

.registration-form input[type="password"], .registration-form input[type="text"] {
    transition: all 0.3s ease;
}

/* Estilo del contenedor de la contraseña con ícono de ojo */
.password-container {
    position: relative;
}

.password-container input {
    width: calc(100% - 40px);  /* Restar el ancho del ícono */
    padding-right: 40px;       /* Espacio para el ícono */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 20px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #58D68D;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.success-message {
    text-align: center;
    color: green;
    margin-top: 10px;
    font-size: 18px;
}
.registration-form .google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #4285F4; /* Color azul de Google */
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.registration-form .google-auth:hover {
    background-color: #357ae8;
}
/* Notificaciones visuales de error */
.registration-form .error-message {
    color: #e74c3c; /* Rojo para mensajes de error */
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 20px;
}

.registration-form input.invalid, .registration-form select.invalid {
    border-color: #e74c3c; /* Borde rojo para campos inválidos */
    background-color: #fdecea; /* Fondo ligero para campos inválidos */
}
.hidden {
    display: none;
}
/* Estilo para el mensaje de éxito */
.success-message {
    text-align: center;
    color: #27ae60; /* Verde claro */
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Estilo para el mensaje de error */
.error-message {
    text-align: center;
    color: #e74c3c; /* Rojo para errores */
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* Mensaje de confirmación de registro con correo */
.message-container {
    text-align: center;
    color: #2ecc71;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    background-color: #f4f9f4;
    border-radius: 8px;
    border: 1px solid #58D68D;
}

.message-container a {
    color: #2ecc71;
    text-decoration: none;
    font-weight: bold;
}

.message-container a:hover {
    color: #27ae60;
}
