/* Páginas públicas de cuenta: recuperar_password.php, perdida.php */

:root {
    --au-surface: rgba(15, 22, 40, .9);
    --au-line: rgba(255, 255, 255, .09);
    --au-line-strong: rgba(255, 255, 255, .18);
    --au-text: #eef2fb;
    --au-muted: #93a1bf;
    --au-label: #7d8aa8;
    --au-blue: #4da3ff;
    --au-discord: #5865f2;
    --au-green: #10b981;
    --au-red: #f43f5e;
    --au-gold: #f59e0b;
}

.au-page {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(140deg, #090d1a 0%, #0e182b 48%, #140e2c 100%);
    color: var(--au-text);
    font-family: Rubik, sans-serif;
    overflow-x: hidden;
}
.au-page *, .au-page *:before, .au-page *:after { box-sizing: border-box; }
.au-page a { color: #9cc9ff; }
.au-page a:hover { color: #fff; text-decoration: none; }

/* Fondo animado (mismo lenguaje que registro.php) */
.au-ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.au-ambient span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .2; animation: auFloat 24s ease-in-out infinite alternate; }
.au-ambient span:nth-child(1) { left: -12vmax; top: -14vmax; background: #5865f2; }
.au-ambient span:nth-child(2) { right: -14vmax; top: -8vmax; background: #008efa; animation-duration: 28s; animation-delay: -6s; }
.au-ambient span:nth-child(3) { left: 30%; bottom: -24vmax; background: #00c292; opacity: .16; animation-duration: 32s; animation-delay: -12s; }
.au-ambient:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
@keyframes auFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.12); } }

.au-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.au-card {
    width: 100%;
    max-width: 440px;
    padding: 30px 28px 26px;
    border: 1px solid var(--au-line);
    border-radius: 22px;
    background: var(--au-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    backdrop-filter: blur(14px);
    animation: auIn .4s cubic-bezier(.22, .77, .24, 1) both;
}
@keyframes auIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.au-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--au-muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.au-brand img { width: 30px; height: 30px; object-fit: contain; }

.au-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(77, 163, 255, .14);
    color: #9cc9ff;
    font-size: 22px;
}
.au-icon--discord { background: rgba(88, 101, 242, .18); color: #a5adff; }
.au-icon--ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.au-icon--bad { background: rgba(244, 63, 94, .16); color: #fda4af; }

.au-title { margin: 0 0 6px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.2; }
.au-lead { margin: 0 0 22px; color: var(--au-muted); font-size: 14px; line-height: 1.6; }
.au-lead b { color: #fff; font-weight: 600; }

/* Canales de entrega */
.au-channels { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.au-channels li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--au-line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--au-muted); font-size: 12.5px; line-height: 1.45; }
.au-channels b { display: block; color: #fff; font-size: 13px; }
.au-channels .fa { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; }
.au-channels .is-discord .fa { background: rgba(88, 101, 242, .18); color: #a5adff; }
.au-channels .is-mail .fa { background: rgba(77, 163, 255, .14); color: #9cc9ff; }
.au-channels .is-discord { border-color: rgba(88, 101, 242, .4); }
.au-tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(88, 101, 242, .2); color: #c7ccff; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

/* Campos */
.au-field { margin-bottom: 14px; }
.au-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--au-muted); font-size: 12px; font-weight: 600; }
.au-input { position: relative; }
.au-input > .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--au-label); font-size: 14px; pointer-events: none; }
.au-input input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 40px;
    border: 1px solid var(--au-line-strong);
    border-radius: 12px;
    background: rgba(6, 10, 20, .6);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.au-input input::placeholder { color: #66738f; }
.au-input input:focus { border-color: var(--au-blue); box-shadow: 0 0 0 4px rgba(77, 163, 255, .12); }
.au-input.is-ok input { border-color: rgba(16, 185, 129, .6); }
.au-input.is-bad input { border-color: rgba(244, 63, 94, .6); }
.au-toggle { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--au-label); transform: translateY(-50%); cursor: pointer; }
.au-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.au-hint { display: block; min-height: 18px; margin-top: 6px; color: var(--au-label); font-size: 12px; }
.au-hint.is-ok { color: #6ee7b7; }
.au-hint.is-bad { color: #fda4af; }

.au-meter { display: flex; gap: 4px; margin-top: 8px; }
.au-meter i { flex: 1 1 0; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); transition: background .2s ease; }
.au-meter[data-nivel="1"] i:nth-child(-n+1) { background: var(--au-red); }
.au-meter[data-nivel="2"] i:nth-child(-n+2) { background: var(--au-gold); }
.au-meter[data-nivel="3"] i:nth-child(-n+3) { background: var(--au-green); }

/* Botones */
.au-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .3);
    transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.au-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.au-btn:disabled { opacity: .6; cursor: default; transform: none; }
.au-btn--ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--au-line-strong); box-shadow: none; }
.au-btn .fa-spinner { display: none; }
.au-btn.is-loading .fa-spinner { display: inline-block; }
.au-btn.is-loading .au-btn__icon { display: none; }

/* Mensajes */
.au-msg { display: flex; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.au-msg .fa { margin-top: 2px; }
.au-msg b { color: #fff; }
.au-msg--success { border-color: rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .1); color: #b9f5e1; }
.au-msg--discord { border-color: rgba(88, 101, 242, .5); background: rgba(88, 101, 242, .14); color: #d6d9ff; }
.au-msg--warning { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); color: #fde9b8; }
.au-msg--danger { border-color: rgba(244, 63, 94, .4); background: rgba(244, 63, 94, .1); color: #ffd1d9; }

.au-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--au-line); font-size: 13px; }
.au-legal { margin: 14px 0 0; color: #5f6d8a; font-size: 11px; line-height: 1.5; text-align: center; }
.au-legal a { color: #7d8aa8; }

/* reCAPTCHA v3: se oculta el sello (el aviso legal va en .au-legal) */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 480px) {
    .au-card { padding: 24px 18px 20px; border-radius: 18px; }
    .au-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .au-ambient span, .au-card { animation: none; }
}
