/* ── Design Tokens — EndoTrace ───────────────────────────────────────────────
   Reference: Tailwind emerald-500 for the accent
   Typography: Inter (Google Fonts)
──────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colores — Dark mode (default) */
    --et-bg:          #0F1117;
    --et-surface:     #1C1E26;
    --et-surface-2:   #252836;
    --et-accent:      #10B981;
    --et-accent-hover:#0D9F6E;
    --et-text:        #E8EAED;
    --et-text-muted:  #9CA3AF;
    --et-border:      #2E3245;

    /* Colores — Light mode */
    --et-bg-light:      #F8F9FA;
    --et-surface-light: #FFFFFF;
    --et-text-light:    #1A1A2E;

    /* Radios */
    --et-radius-card:   12px;
    --et-radius-btn:    8px;
    --et-radius-input:  8px;

    /* Status */
    --et-status-success: #4ade80;
    --et-status-error:   #FCA5A5;
    --et-status-warning: #FBBF24;

    /* Shadows */
    --et-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);

    /* Typography */
    --et-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset and base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Only NON-interactive elements lose focus ring.
   div and span can be interactive in Blazor, so we leave them out. */
h1, h2, h3, h4, h5, h6, p, section, article, main {
    outline: none;
}

/* ── Focus-visible para inputs SSR (Login, ForgotPassword, ResetPassword) ─── */
.et-input:focus-visible {
    outline: none;
    border-color: var(--et-accent) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.et-input:focus:not(:focus-visible) {
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--et-font);
    background-color: var(--et-bg);
    color: var(--et-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Custom scrollbar (dark) ────────────────────────────────────────────────*/
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--et-bg); }
::-webkit-scrollbar-thumb { background: var(--et-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--et-text-muted); }

/* ── Welcome page ──────────────────────────────────────────────────────────*/
.welcome-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.welcome-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--et-text);
    margin-bottom: 0.5rem;
}

.welcome-container p {
    color: var(--et-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    color: var(--et-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.welcome-container .accent-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--et-accent);
    flex-shrink: 0;
}

.welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background-color: var(--et-accent);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
}

.welcome-cta:hover {
    background-color: var(--et-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.welcome-cta:focus-visible {
    outline: 2px solid var(--et-accent);
    outline-offset: 4px;
    border-radius: 50px;
}

.welcome-cta:active {
    transform: translateY(0);
    box-shadow: none;
}
