/* =================================== */
/* CSS PARA registro.php - VERSIÓN MODERNA ANIMADA */
/* =================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #2b5876, #4e4376, #173f5f, #20639b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    border: 1px solid rgba(255,255,255,0.5);
}

.card-title {
    color: #173f5f;
    margin-bottom: 5px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.text-center {
    text-align: center;
    margin-bottom: 25px;
    color: #718096;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

input[type="text"], 
input[type="password"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input[type="text"]:focus, 
input[type="password"]:focus,
select:focus {
    border-color: #4e4376;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 67, 118, 0.15);
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #2b5876, #4e4376);
    color: white;
    box-shadow: 0 10px 20px rgba(78, 67, 118, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(78, 67, 118, 0.4);
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideInUp 0.4s ease-out;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
    border-left: 5px solid #e53e3e;
}

.alert-success {
    background-color: #f0fff4;
    color: #276749;
    border-left: 5px solid #38a169;
}

p.mt-3 {
    text-align: center;
    margin-top: 25px;
    color: #718096;
}

p.mt-3 a {
    color: #4e4376;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

p.mt-3 a:hover {
    color: #2b5876;
    text-decoration: underline;
}

/* ===== BRANDED REFRESH REGISTRO ===== */

body {
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.24), transparent 18rem),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.16), transparent 20rem),
        radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.18), transparent 14rem),
        linear-gradient(135deg, #eef5ff 0%, #fff5fb 60%, #fffce8 100%);
    animation: none;
}

.card {
    max-width: 560px;
    border-top: 6px solid #1d4ed8;
    box-shadow: 0 26px 60px rgba(31,41,55,.12);
}

.card-title {
    color: #1f2937;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #ec4899 78%, #facc15 122%);
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.18);
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236,72,153,.12);
}

.register-brand-wrap {
    text-align: center;
    margin-bottom: 8px;
}

.brand-logos-duo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    animation: registerFloat 5s ease-in-out infinite;
}

@keyframes registerFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.88);
    border-radius: 22px;
    border: 1px solid rgba(226,232,240,.8);
    box-shadow: 0 12px 26px rgba(31,41,55,.07);
    padding: 12px;
}

.brand-logo-item img { width: 100%; height: 100%; object-fit: contain; }
.register-duo-brands .deluxe-brand { width: 94px; height: 94px; padding: 9px; }
.register-duo-brands .cube-brand { width: 138px; height: 94px; }

.register-brand-caption {
    color: #1d4ed8;
    font-weight: 700;
    margin: 0 0 18px;
    font-size: 0.92rem;
}

.top-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.mini-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

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


/* =======================================================
   MODO RENDIMIENTO / BAJO GPU
   Desactiva animaciones, blur, filtros, sombras pesadas y efectos transform.
   Mantiene funciones y estructura visual, pero reduce consumo de GPU.
   ======================================================= */
:root {
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    --shadow-lg: 0 6px 22px rgba(15, 23, 42, 0.10) !important;
    --transition: none !important;
}

html { scroll-behavior: auto !important; }

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

body::before,
.app-header::after,
.hero-copy::before,
.metric-card::after,
.glass-element,
.circle-1,
.circle-2,
.square-1 {
    display: none !important;
    content: none !important;
}

.app-header,
.app-navbar,
.card,
.metric-card,
.hero-copy,
.user-info,
.right-content,
.login-wrapper,
.table-responsive,
.dashboard-brand-strip-inner,
.stats-bar-ranking,
.history-chip,
.brand-logo-item,
.filter-chip,
.period-label {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    box-shadow: var(--shadow-sm) !important;
}

img,
.user-logo-animated,
.panel-logo,
.brand-logos-duo,
.brand-logo-item,
.emoji-animated,
.emoji-status,
.live-dot {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.card:hover,
.metric-card:hover,
.btn:hover,
.btn-glass:hover,
.btn-install:hover,
.btn-logout:hover,
.nav-menu-horizontal li a:hover,
.checkbox-label:hover,
.history-check-option:hover,
.stat-pill:hover,
.emoji-status:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Marquesina sin animación para no usar GPU: conserva la información, pero queda estática y desplazable. */
.ticker__inner {
    animation: none !important;
    transform: none !important;
    padding-left: 0 !important;
    gap: 18px !important;
}

.ticker {
    overflow-x: auto !important;
    scrollbar-width: thin;
}

.ticker__item {
    flex: 0 0 auto;
}

.live-dot {
    box-shadow: none !important;
}

/* Barras y gráficos: se muestran completos sin animación de crecimiento. */
.progress-fill,
.report-bar-fill,
.chart-bar-fill,
.chart-fill,
.daily-chart-bar,
.month-bar-fill,
.bar,
.fill-blue,
.fill-primary,
.fill-danger,
.fill-imprenta,
.fill-purple,
.fill-green {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Reducir sombras y repintados en tablas grandes. */
.data-table th,
.data-table td,
.current-day-cell,
.current-day-header {
    animation: none !important;
    transition: none !important;
}

.current-day-cell {
    box-shadow: none !important;
}

/* Evita filtros costosos de flatpickr y tarjetas especiales. */
.flatpickr-calendar,
.alert,
.badge,
.history-pill,
.report-kpi-card,
.report-chart-card,
.analysis-item {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
