* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(imagenes/fondo.jpg);
    animation: gradientBG 45s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-container {
    position: relative;
    width:500px;
    padding: 40px;
    border-radius: 20px;
    backdrop-filter:blur(15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
    z-index: 10;
    overflow: hidden;
}

.glass-container h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-group input, input[type=text], input[type=password] {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    outline: none;
    border-radius: 35px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 35px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.register-link a {
    color: #fff;
    text-decoration: none;
}

/* Añade esto al final de tu register.css existente */

.message-container {
  margin-bottom: 20px;
}

.error-message {
  display: none; /* Oculto por defecto */
  background-color: rgba(255, 0, 0, 0.15);
  color: #ff6b6b;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 107, 107, 0.3);
  backdrop-filter: blur(5px);
  margin-bottom: 10px;
  font-size: 14px;
}

.success-message {
  display: none; /* Oculto por defecto */
  background-color: rgba(0, 255, 0, 0.15);
  color: #4CAF50;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(76, 175, 80, 0.3);
  backdrop-filter: blur(5px);
  margin-bottom: 10px;
  font-size: 14px;
}

/* Estilos para los campos de entrada cuando hay error */
.input-error {
  border: 1px solid #ff6b6b !important;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3) !important;
}

.error {
  color: #ff6b6b;
  text-align: center;
  margin-bottom: 15px;
}

.ok {
  color: #4CAF50;
  text-align: center;
  margin-bottom: 15px;
}