/*
 * bumr — 2016-era styling for the Razor auth pages.
 *
 * These pages (login, signup, 2FA, ToS...) sit outside the Next.js frontend, so they never
 * inherited the 2016 look and shipped as stock Bootstrap. The palette and gradients below are
 * taken from the 2016 frontend already in this repo (components/navbar, styles/buttonStyles.js,
 * styles/globals.css) rather than invented, so the two halves of the site agree.
 *
 * Source Sans Pro is served locally from /fonts — no third-party CDN.
 */

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/source-sans-pro-v9-latin-300.woff2') format('woff2'),
         url('/fonts/source-sans-pro-v9-latin-300.woff') format('woff');
}
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/source-sans-pro-v9-latin-regular.woff2') format('woff2'),
         url('/fonts/source-sans-pro-v9-latin-regular.woff') format('woff');
}
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/source-sans-pro-v9-latin-600.woff2') format('woff2'),
         url('/fonts/source-sans-pro-v9-latin-600.woff') format('woff');
}

:root {
    --rbx-nav: #0074bd;
    --rbx-link: #0055b3;
    --rbx-border: #ebebeb;
    --rbx-page-bg: #e3e3e3;
    --rbx-text: #191919;
    --rbx-muted: #777;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--rbx-page-bg);
    color: var(--rbx-text);
    font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

a { color: var(--rbx-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */

.rbx-header {
    background: var(--rbx-nav);
    height: 50px;
    width: 100%;
}
.rbx-header-inner {
    max-width: 970px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}
.rbx-logo {
    height: 26px;
    width: auto;
    margin-right: 24px;
    flex-shrink: 0;
}
.rbx-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.rbx-nav-links a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.rbx-nav-links a:hover { text-decoration: underline; }

/* secondary bar shown to signed-in staff */
.rbx-subheader {
    background: #393939;
    width: 100%;
}
.rbx-subheader .rbx-header-inner { height: 36px; }
.rbx-subheader a { color: #d6d6d6; font-size: 13px; }

/* ---------- layout ---------- */

.rbx-container {
    max-width: 970px;
    margin: 0 auto;
    padding: 20px 10px 40px;
}
.rbx-panel {
    background: #fff;
    border: 1px solid var(--rbx-border);
    border-radius: 3px;
    padding: 20px;
}
.rbx-panel-narrow {
    max-width: 420px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: 300;
    color: var(--rbx-text);
    margin: 0 0 12px;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; font-weight: 400; }

hr { border: 0; border-top: 1px solid var(--rbx-border); margin: 18px 0; }
.rbx-muted { color: var(--rbx-muted); }

/* ---------- forms ---------- */

.rbx-input {
    display: block;
    width: 100%;
    padding: 7px 8px;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--rbx-text);
    background: #fff;
    border: 1px solid #c3c3c3;
    border-radius: 3px;
}
.rbx-input:focus {
    outline: none;
    border-color: var(--rbx-nav);
}
.rbx-input[disabled] { background: #f2f2f2; color: #999; }

/*
 * Buttons are NOT defined here. They come from roblox-styleguide.css, which is Roblox's own
 * StyleGuide.css loaded verbatim, driving its real sprite sheets under /images/Buttons/.
 * Use the genuine classes in markup: .btn-large.btn-primary, .btn-medium.btn-neutral, etc.
 *
 * The only adjustment: Roblox's .btn-* rules set no bottom margin and assume a table layout,
 * so give them a little breathing room in our stacked forms.
 */
.btn-large, .btn-medium, .btn-small { margin-top: 4px; }
input.btn-large, input.btn-medium, input.btn-small { font-family: inherit; }

/* ---------- alerts ---------- */

.rbx-alert {
    padding: 10px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.rbx-alert-error   { background: #fdecea; border-color: #f5c2be; color: #9b1c14; }
.rbx-alert-success { background: #eaf7ec; border-color: #bfe3c6; color: #1c6b2b; }
.rbx-alert-warning { background: #fff8e5; border-color: #f2dda4; color: #7a5c00; }

.rbx-codeblock {
    background: #f7f7f7;
    border: 1px solid var(--rbx-border);
    border-radius: 3px;
    padding: 12px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

/* ---------- footer ---------- */

.rbx-footer {
    border-top: 1px solid #d0d0d0;
    background: #f2f2f2;
    padding: 18px 0;
    margin-top: 30px;
}
.rbx-footer .rbx-container { padding-top: 0; padding-bottom: 0; }
.rbx-footer p { color: var(--rbx-muted); font-size: 12px; margin: 0 0 6px; }

@media (max-width: 700px) {
    .rbx-header-inner { flex-wrap: wrap; height: auto; padding: 8px 10px; }
    .rbx-header { height: auto; }
    .rbx-nav-links { gap: 12px; }
}
