@font-face { font-family: Universidad; src: url('Universidad.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --text: #f5efdf;
  --muted: #bdb6a6;
  --accent: #6e94b5;
  --surface: #25272f;
  --card: #20242d;
  --header: #151923;
  --border: #ffffff20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; color: var(--text); font: 16px/1.5 Arial, sans-serif; background: linear-gradient(to bottom, #080b10ee, #10151bcc), url('../images/cfb-background.jpg') center / cover fixed; }
button, input, select, textarea { font: inherit; }
button, summary, a, input { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input:not([type=radio]):not([type=checkbox]), select, summary { min-height: 44px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); overflow-wrap: anywhere; }
.site-header { min-height: 80px; padding: 16px clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); }
.brand { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; font: clamp(20px, 4.7vw, 30px) Universidad, Arial, sans-serif; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.header-link { padding: 12px 0; color: var(--muted); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--text); }
.page-heading { margin: 0 0 24px; text-align: center; font-family: 'Bahnschrift Condensed', Impact, 'Arial Narrow', sans-serif; font-stretch: condensed; font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; letter-spacing: .035em; color: var(--text); text-shadow: 0 2px 4px #0005; }
.page-heading::after { content: ''; display: block; width: 48px; height: 3px; margin: 12px auto 0; border-radius: 3px; background: var(--accent); }
.page-heading.auth-brand { font-family: Universidad, Arial, sans-serif; font-size: clamp(32px, 9vw, 54px); font-weight: 400; letter-spacing: normal; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff26; border-radius: 10px; background: #30343f; color: var(--text); font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; }
.button:hover:not(:disabled) { filter: brightness(1.12); }
.button.primary { background: var(--accent); color: #182634; border-color: transparent; }
.muted, .empty-state { color: var(--muted); }
.empty-state { padding: 28px 16px; margin: 0; text-align: center; font-size: .9rem; }
label { color: var(--text); }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: 12px; background: var(--header); color: var(--text); border: 1px solid #ffffff40; border-radius: 8px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #ffffff30; border-radius: 18px; background: #252a34; color: var(--text); overflow-y: auto; }
dialog::backdrop { background: #080b10b3; backdrop-filter: blur(4px); }
dialog h2 { margin-bottom: 20px; font-size: 1.5rem; }
dialog label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .button, .header-link { transition: background .15s, color .15s, border-color .15s; } }
