/* ============================================================
   Tagged One — site.css
   Global foundation: font, reset, variables, shared components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: inherit;
    font-weight: 400;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 800;
    line-height: 1.12;
}

/* ── CSS custom properties ────────────────────────────────── */
:root {
    --accent:   #5b8fff;
    --accent2:  #a78bfa;

    /* Dark theme (landing pages) */
    --dark-bg:        #000;
    --dark-surface:   #0d1117;
    --dark-card:      #111827;
    --dark-border:    #1f2937;
    --dark-text:      #f9fafb;
    --dark-muted:     #6b7280;

    /* Light theme (auth, dashboard) */
    --light-bg:       #f8fafc;
    --light-surface:  #fff;
    --light-border:   #e5e7eb;
    --light-text:     #111827;
    --light-muted:    #6b7280;

    /* Semantic */
    --green:  #10b981;
    --amber:  #f59e0b;
    --red:    #ef4444;
}

/* ── Shared buttons ───────────────────────────────────────── */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(91,143,255,.45);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1.5px solid #374151;
    color: #d1d5db;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    padding: .42rem 1.05rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
.btn-sm:hover { opacity: .85; color: #fff; }

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: transparent;
    border: 1.5px solid var(--light-border);
    color: var(--light-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    padding: .4rem .95rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: transparent;
    border: 1.5px solid #fecaca;
    color: var(--red);
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    padding: .4rem .95rem;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s;
}
.btn-danger-sm:hover { background: #fef2f2; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    font-size: .97rem;
    padding: .75rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }

/* ── Form controls ────────────────────────────────────────── */
.form-control,
.form-select {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: .97rem;
    font-weight: 400;
    color: var(--light-text);
    background: #f9fafb;
    border: 1.5px solid var(--light-border);
    border-radius: 10px;
    padding: .68rem .9rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91,143,255,.12);
    outline: none;
}

/* ── Notices / alerts ─────────────────────────────────────── */
.notice-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 8px;
    padding: .65rem .9rem;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.notice-error,
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 8px;
    padding: .65rem .9rem;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.alert-error ul { margin: 0; padding-left: 1.1rem; }

/* ── Pill badges ──────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 50px;
    padding: .5rem 1.1rem;
    font-size: .9rem;
    font-weight: 500;
    color: #d1d5db;
}
.pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── Tag/status badges ────────────────────────────────────── */
.tag-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.tag-status .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-new    { color: var(--amber); } .status-new    .dot { background: var(--amber); }
.status-active { color: var(--green); } .status-active .dot { background: var(--green); }

/* ── Password strength meter ──────────────────────────────── */
.pw-meter-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 99px;
    margin-top: .5rem;
    overflow: hidden;
}
.pw-meter-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .3s, background .3s;
}
#pw-rules {
    list-style: none;
    padding: 0;
    margin: .55rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem .5rem;
}
.pw-rule {
    font-size: .78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.pw-rule::before { content: '✗'; font-weight: 700; }
.pw-rule--pass { color: var(--green); } .pw-rule--pass::before { content: '✓'; }
.pw-rule--fail { color: #9ca3af; }

/* ── Section label (landing pages) ───────────────────────── */
.section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: .65rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
