/* Contenedor principal */
html, body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100dvh;
    overscroll-behavior: none; /* Permite scroll pero evita el rebote */
    padding-top: env(safe-area-inset-top, 0);
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    padding-top: env(safe-area-inset-top, 0);

}

/* Botón de registro */
.apple-button {
    background-color: black;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 20px;
}

.apple-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.apple-button:active {
    background-color: #004b9a;
    transform: translateY(0);
}

.apple-button img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20%;
    margin-bottom: -7px;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 40px;
}

/* Caja de registro */
.register-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 20px;
}

/* Estilo del formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Grupos de entrada */
.input-group {
    text-align: left;
}

.input-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Botón de registro */
.register-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.register-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.register-button:active {
    background-color: #004b9a;
    transform: translateY(0);
}

/* Opciones adicionales */
.extra-options {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.extra-options a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.extra-options a:hover {
    text-decoration: underline;
}

/* Mensajes Flash */
.alert {
    padding: 15px;
    margin: 0 auto; /* Centrar horizontalmente */
    position: fixed; /* Fijar en la pantalla */
    top: 10px; /* Distancia desde la parte superior */
    left: 50%; /* Centrar horizontalmente */
    transform: translateX(-50%); /* Ajuste para centrar completamente */
    z-index: 1000; /* Asegurarse de que esté sobre otros elementos */
    width: 80%; /* Ajustar ancho relativo al tamaño de la pantalla */
    max-width: 500px; /* Limitar el ancho máximo */
    text-align: center;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Añadir sombra para destacar */
    border-radius: 8px; /* Bordes redondeados */
}

/* Éxito */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Error */
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.google-login {
    margin-top: 15px;
    margin-bottom: 15px;
}

#google-register-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#google-register-btn img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    background-color: white;
    border-radius: 20%;
    margin-bottom: -7px;
}

#google-register-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#google-register-btn:active {
    background-color: #004b9a;
    transform: translateY(0);
}

footer {
    background: transparent; /* Fondo gris claro */
    position: relative;
    bottom: 0px; /* Separación del borde inferior */
    color: white; /* Texto oscuro */
    padding: 20px;
    width: 100%;
    text-align: center;
}

footer a{
  text-decoration: none; /* Quita el subrayado */
  color: white; /* Cambia el color del enlace */
}

footer p{
  font-size: small;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 35px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #666;
}

.toggle-password:hover {
  color: #000;
}
