/*Shared by login.php and register.php*/
:root{
    --aqua: #00607e; /*For banners */
    --celeste: #3a849b; /*For clearer backgrounds */
    --blanco: #ffffff; /*For text and backgrounds */
    --celeste-oscuro: #004b5c; /*For darker backgrounds */
}

/*The body itself centers the box, so no extra container is needed*/
body{
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--celeste-oscuro);
}

.fondo{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.auth{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 500px;
    min-height: 400px;
    margin: 10px;
    font-size: 1.4rem;
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.auth h1{
    text-transform: uppercase;
}

.auth-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inputs{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 15px;
}

input{
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 0.9rem;
}

button{
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: var(--aqua);
    color: var(--blanco);
    cursor: pointer;
}

button:hover{
    background-color: var(--celeste);
}

/*Link that jumps between login and register*/
.auth-link{
    margin-top: 15px;
    color: var(--blanco);
    text-decoration: none;
    text-align: center;
    font-size: 20px;
}

.auth-link:hover{
    text-decoration: underline;
}

/*?error= and ?success= messages injected by auth.js*/
.feedback{
    max-width: 300px;
    margin: 0;
    padding: 0 10px;
    font-size: 0.9rem;
    text-align: center;
}

.feedback.error{
    color: #ffc9c9;
}

.feedback.success{
    color: #c9ffd8;
}

.goback{
    position: absolute;
    top: 10px;
    left: 10px;
}

.login-back, .register-back {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
}

#lang-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 1rem;
    background-color: var(--aqua);
    color: var(--blanco);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#lang-btn:hover {
    background-color: var(--celeste);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 35px; /* Space for the eye icon */
}

#toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--celeste-oscuro);
    cursor: pointer;
}