/**
 * Senka (戦果) — Sistema de Torneos y Liga Beyblade X (BDB)
 * Estilos Modulares de Autenticación, Registro y Enlaces de Compartir
 * Autor: Sebastián Ariza / https://sebastiandeveloper.website/
 */

/* ==========================================================================
   Página Independiente de Registro (register.php)
   ========================================================================== */

.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.25rem;
    position: relative;
    overflow-x: hidden;
}

/* Efectos de fondo ambiental Cyberpunk */
.auth-bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bg-glow-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
}

.auth-bg-glow-2 {
    position: absolute;
    bottom: -15%;
    right: 15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.09) 0%, transparent 70%);
    filter: blur(70px);
    border-radius: 50%;
}

/* Tarjeta Central de Registro */
.auth-card-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 240, 255, 0.12);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.auth-card-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
    position: relative;
}

.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.auth-logo-badge:hover {
    transform: translateY(-1px);
}

.auth-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
    object-fit: cover;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    flex-shrink: 0;
}

.auth-logo-badge:hover .auth-logo-img {
    transform: scale(1.08) rotate(2deg);
    border-color: var(--cyan-neon);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.auth-brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.auth-brand-name .senka-kanji {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--cyan-neon);
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.auth-brand-tag {
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--cyan-neon);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 0.1rem;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.auth-card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.auth-card-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Lista de Beneficios Rápidos */
.auth-benefits-strip {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.auth-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.auth-benefit-pill svg {
    color: var(--cyan-neon);
}

/* Cuerpo del Formulario */
.auth-card-body {
    padding: 2rem;
}

/* Input Group con botón mostrar contraseña */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .form-control {
    padding-right: 2.75rem;
}

.btn-toggle-password {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
    color: var(--cyan-neon);
}

/* Ayudas de formulario */
.form-helper-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

/* Caja de Feedback / Alertas */
.auth-feedback-box {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.4;
}

.auth-feedback-box.error {
    background: rgba(255, 23, 68, 0.12);
    border: 1px solid rgba(255, 23, 68, 0.35);
    color: #ff8097;
}

.auth-feedback-box.success {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.35);
    color: #69f0ae;
}

/* Sección de Compartir Enlace */
.auth-share-strip {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.auth-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-medium);
    color: var(--cyan-neon);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-share-btn:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--cyan-neon);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Estado de Usuario Ya Autenticado */
.auth-logged-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.auth-logged-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 2px solid var(--cyan-neon);
    box-shadow: 0 0 20px var(--cyan-neon-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cyan-neon);
    margin-bottom: 1.25rem;
}

.auth-logged-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-logged-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* Pie de página ligero de registro */
.auth-page-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1rem 0;
}

.auth-page-footer a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.auth-page-footer a:hover {
    color: var(--cyan-neon);
}

/* Callout en Modal de Autenticación existente */
.auth-modal-share-bar {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 240, 255, 0.04);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.auth-modal-share-text {
    color: var(--text-secondary);
    line-height: 1.3;
}

.auth-modal-share-text strong {
    color: var(--text-primary);
}
