/* ---------- LOGIN / AUTENTICACIÓN CON VIDEO DE FONDO ---------- */

.auth-wrapper {
    position: relative;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

/* Video fondo */
.auth-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay oscuro para elegancia */
.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* Tarjeta de login/registro */
.auth-card {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: 420px;
    background: #050505;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 35px 32px 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #C0C0C0;
    margin: 0 0 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    margin: 0 0 25px;
}

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

.auth-field label {
    display: block;
    font-size: 13px;
    color: #C0C0C0;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #000;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, transform 0.18s ease-out;
}

.auth-field input::placeholder {
    color: #666;
}

.auth-field input:focus {
    border-color: #C0C0C0;
    box-shadow: 0 0 0 1px #C0C0C0;
}

/* Animación de jaloncito en el campo */
@keyframes passwordBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.password-bump {
    animation: passwordBump 0.18s ease-out;
}

/* Botón principal */
.auth-btn {
    margin-top: 8px;
    width: 100%;
    padding: 11px 0;
    border-radius: 999px;
    border: 1px solid #C0C0C0;
    background: #C0C0C0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s;
}

.auth-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
}

/* Enlaces al pie de la tarjeta */
.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.auth-links a {
    color: #C0C0C0;
    text-decoration: none;
    font-size: 13px;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* ---------- TOGGLE PASSWORD (OJITO) ---------- */

.auth-field-password .password-wrapper {
    position: relative;
}

.auth-field-password .password-wrapper input {
    padding-right: 40px; /* espacio para el ojito */
}

/* Botón del ojo */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: auto;
    transition: transform 0.18s ease;
    overflow: hidden;
}

/* Ripple sutil */
.toggle-password::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.25);
    opacity: 0;
    pointer-events: none;
}

.toggle-password:active::after {
    width: 30px;
    height: 30px;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.4s ease;
}

/* Los SVG del ojo se muestran normales */
.toggle-password svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.18s ease, transform 0.22s ease;
}

/* Estado inicial: ojo cerrado visible, abierto oculto */
.toggle-password .eye-closed {
    display: inline;
    opacity: 1;
    transform: scale(1);
}

.toggle-password .eye-open {
    display: none;
    opacity: 0;
    transform: scale(0.9) rotate(-10deg);
}

/* Cuando se muestra la contraseña */
.toggle-password.showing {
    transform: translateY(-50%) scale(1.05);
}

.toggle-password.showing .eye-closed {
    display: none;
    opacity: 0;
    transform: scale(0.9) rotate(-10deg);
}

.toggle-password.showing .eye-open {
    display: inline;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}



/* ---------- MENSAJES (OPCIONALES) ---------- */

.error-msg, .success-msg {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
}

.error-msg {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid #b33;
    color: #ff8080;
}

.success-msg {
    background: rgba(120, 255, 120, 0.15);
    border: 1px solid #3b3;
    color: #bfffbf;
}


/* ---------- SECCIÓN HISTORIA (LOGIN & REGISTRO) ---------- */

.about-history {
    padding: 30px 30px;
    text-align: center;
    margin-top: 10px;
}

.history-text {
    max-width: 750px;
    margin: 15px auto 0;
    color: #aaa;
    font-size: 17px;
    line-height: 1.6;
}
/* MENSAJES DE ERROR / ÉXITO */
.auth-message {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}

.auth-message.error {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid #b33;
    color: #ff9a9a;
}

.auth-message.success {
    background: rgba(120, 255, 120, 0.15);
    border: 1px solid #3b3;
    color: #b8ffb8;
}
