* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}


section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    background: transparent;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1;
     background: url('../imgs/bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;

    animation: animateBg 5s linear infinite;
}

@keyframes animateBg {
    100% {
        filter: hue-rotate(360deg);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.1); /* Color semitransparente */
    backdrop-filter: blur(10px);          /* Difumina el fondo detrás */
    -webkit-backdrop-filter: blur(10px);  /* Para compatibilidad extra */
    padding: 40px 30px;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.9);
    color: white;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.9);
}

.login-container h2 {
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

.input-group i {
    color: white;
    margin-right: 10px;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
}

.options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;
}

.options a {
    color: #ccc;
    text-decoration: none;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: white;
    color: black;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #ddd;
}

.form-floating {
    position: relative;
    margin-top: 10px;     
    margin-bottom: 20px; 
}

.form-floating input {
    width: 100%;
    padding: 14px 10px 6px 10px; /* padding normal */
    padding-right: 25px;         /* SOLO espacio a la derecha para el icono */
    box-sizing: border-box;      /* asegura que el padding no expanda el ancho total */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
}

.form-floating label {
    position: absolute;
    left: 10px;
    top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.2s ease;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
    top: -15px;
    left: 8px;
    font-size: 13px;
    padding: 0 4px;
    border-radius: 4px;
    color: white;
}

/* Icono a la derecha dentro del input */
.icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none; /* No interfiere con clics */
}

.d-none {
    display: none;
}

.switch-button {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #ccc;
    text-decoration: none;
}

.switch-button a {
    color: #fff;
    text-decoration: none;
}

.switch-button a:hover{
    text-decoration: underline;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.error-container {
    padding: 4px 8px;
    background-color: hsl(0, 93%, 94%);
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: left;
}

.error-item {
    margin-top: 4px;
    margin-bottom: 4px;
    color: red !important;
    font-size: 12px;
}

ul {
    list-style-position: inside;
}