/*
 * bumr — content styling for the Razor auth pages.
 *
 * The header and buttons are NOT defined here. They come from Roblox's own stylesheets:
 *   /css/rbx2016-main.css   -> #header.rbx-header (#0074BD, 80px), Bootstrap grid,
 *                              .btn-large / .btn-medium / .btn-small,
 *                              .btn-primary / .btn-neutral / .btn-negative
 *   /css/rbx2016-login.css  -> the /newlogin page bundle
 * Use those genuine classes in markup. This file only covers page-level layout and the
 * content panels, which have no equivalent on the pages we're standing in for.
 *
 * 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-link: #0055b3;
    --rbx-border: #ebebeb;
    --rbx-page-bg: #e3e3e3;
    --rbx-text: #191919;
    --rbx-muted: #777;
}

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;
}

/* .rbx-header is fixed and 80px tall, so content must clear it. */
body { padding-top: 80px; }

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

/* ---------- 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: 460px;
    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: #114081; }
.rbx-input[disabled] { background: #f2f2f2; color: #999; }

/* Roblox's .btn-* rules assume a table layout and set no bottom margin;
   give them 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; }
