@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*background: rgb(42, 102, 66); */
    background: url('fondo2.jpg') no-repeat;
    background-size: cover;
    background-position: center;

}

.wrapper {
    width: 420px;
    /*background: rgb(176, 57, 245);*/
    background: transparent;
    border: 2px solid rgba(225, 225, 225, .2);
    backdrop-filter: blur(50px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    color: #fff;
    padding: 30px 40px;  
    border-radius: 10px; /* opcional, para redondear bordes */
}

.wrapper h1 {
    font-size: 36px;
    text-align: center;
}

.wrapper .input-box{
    width: 100%;
    height: 50px;
    /*background: seashell;*/
    margin: 30px 0;
    position: relative;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(225, 225, 225, .2);
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
}

.input-box select {
  width: 100%;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05); /* para que se vea sobre el fondo */
  border: 2px solid rgba(225, 225, 225, 0.2);
  border-radius: 40px;
  font-size: 16px;
  color: #fff;
  padding: 10px 20px;
  outline: none;
  appearance: none;
}

.input-box select option {
  color: #000;
}

.input-box input::placeholder{
    color: #fff;
    
}

.input-box i {
    position: absolute;
    right: 20px;
    top:50%;
    transform: translateY(-50%);
    font-size: 20px;

}

.wrapper .remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;

}

.remember-forgot label input {
    accent-color: #fff;
    margin-right: 3px;

}

.remember-forgot a{
    color: #fff;
    text-decoration: none;
}

.remember-forgot a:hover{
    text-decoration: underline;

}

.wrapper .btn {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;

}

/* Forzar a que los enlaces con clase .btn se vean igual que los botones */
a.btn {
    display: inline-block;     /* que se comporte como botón */
    text-decoration: none;     /* quitar subrayado */
    text-align: center;
    font-family: inherit;      /* misma fuente (Poppins) */
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    width: 100%;
    height: 45px;
    line-height: 45px;         /* centra el texto verticalmente */
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
}

.wrapper .register-link {
    font-size: 14,5px;
    text-align: center;
    margin: 20px 0 15px;

}

.register-link p a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.register-link p a:hover {
    text-decoration: underline;

}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    position: relative; 
    background: url("fondo2.jpg");
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    color: black;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: rgb(255, 255, 255);
}
.modal-content .btn-link {
    background: #fff;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.modal-content .btn-link:hover {
    background: #ffffff;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.close-modal:hover {
    color: rgb(255, 255, 255);
}
.feedback-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
    animation: fadeOut 3s forwards;
}

.feedback-correcto {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.feedback-incorrecto {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
