/*
 * vent.as's look on the hub's own pages a visitor reaches from the commercial site: the account forms (registration,
 * forgotten password, the emailed code, a new password - body.vent-page, over user-registration.css) and the legal
 * documents (/tos/, /privacy/, /sla/ - body.vent-legal, over their own template). FoXE, the site's night palette, a
 * top bar with the logo and the red-dot wordmark (view/vent-page-bar.php or the documents' own copy), and a footer
 * crediting R&D Labs AI. See .architecture/login-hub/commercial-site.md, "The hub's pages in vent.as's look".
 */

@font-face {
    font-family: "FoXE";
    src: url("/assets/fonts/FoXE-Regular.woff2") format("woff2"), url("/assets/fonts/FoXE-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "FoXE";
    src: url("/assets/fonts/FoXE-Bold.woff2") format("woff2"), url("/assets/fonts/FoXE-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --vent-night: #0c0d10;
    --vent-night-2: #17191d;
    --vent-line: #2e3036;
    --vent-on-night: #f0f1f4;
    --vent-muted: #a9adb5;
    --vent-ink: #141b26;
    --vent-ink-muted: #444d5e;
    --vent-azure: #006cb4;
    --vent-azure-deep: #004a7e;
    --vent-cyan: #21d4f0;
    --vent-red: #ff0000;
    --vent-font: "FoXE", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.vent-page,
body.vent-legal {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--vent-font);
    background: radial-gradient(1200px 600px at 15% -10%, rgba(33, 212, 240, .14), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(0, 108, 180, .22), transparent 60%), var(--vent-night);
    background-attachment: fixed;
    color: var(--vent-on-night);
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- the bar and the footer */

.vent-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    box-sizing: border-box;
}

.vent-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.vent-brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.vent-word {
    font-family: var(--vent-font);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.vent-dot,
.brand-dot {
    color: var(--vent-red);
}

.brand-name {
    font-weight: 700;
    white-space: nowrap;
}

.vent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 15px;
    font-weight: 700;
}

.vent-links a {
    color: var(--vent-on-night);
    text-decoration: none;
    opacity: .85;
}

.vent-links a:hover {
    opacity: 1;
    color: var(--vent-cyan);
}

/* The ES | EN switch at the bar's end, as the commercial site draws it; it stays when a phone hides the links. */
.vent-links {
    margin-left: auto;
}

.vent-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
}

.vent-lang span {
    color: var(--vent-on-night);
    opacity: .4;
}

.vent-lang a {
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--vent-on-night);
    text-decoration: none;
    opacity: .75;
}

.vent-lang a:hover {
    opacity: 1;
}

.vent-lang a.is-active {
    opacity: 1;
    box-shadow: inset 0 -2px 0 var(--vent-cyan);
}

.vent-foot {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid var(--vent-line);
    color: var(--vent-muted);
    font-size: 14px;
    text-align: center;
}

.vent-foot a {
    color: var(--vent-cyan);
    text-decoration: none;
}

.vent-foot a:hover {
    text-decoration: underline;
}

.vent-foot .vent-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------- the account forms */

/* The way to the sales team's WhatsApp: its dark green on its pale tint, AA both ways, as the commercial site's pill. */
.vent-wa-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #9ad7b0;
    border-radius: 999px;
    background: #e3f7ea;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body.vent-page .sign-up-container a.vent-wa-pill {
    color: #075e30;
}

body.vent-page .sign-up-container a.vent-wa-pill:hover {
    background: #cdf0d9;
    text-decoration: none;
}

.vent-wa-pill:focus-visible {
    outline: 3px solid var(--vent-azure);
    outline-offset: 2px;
}

.vent-wa-pill .bi {
    color: #128c7e;
    font-size: 17px;
}

/* The sign-up's title with the pill beside it; the pill drops under the title where both do not fit. */
.signup-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
}

body.vent-page .sign-up-container {
    margin: 24px auto 48px;
    padding: 32px 28px;
    border: 0;
    border-radius: 22px;
    background: #ffffff;
    color: var(--vent-ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

body.vent-page .signup-heading {
    font-size: 28px;
    letter-spacing: -.01em;
    color: var(--vent-ink);
}

body.vent-page .row {
    padding: 14px 0 0;
}

body.vent-page .form-label {
    font-size: 14px;
}

body.vent-page input.input-box-330,
body.vent-page input.email-code-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #d2dae4;
    border-radius: 10px;
    background: #ffffff;
    color: var(--vent-ink);
    font-family: var(--vent-font);
    font-size: 16px;
}

body.vent-page input.input-box-330:focus,
body.vent-page input.email-code-input:focus {
    outline: none;
    border-color: var(--vent-azure);
    box-shadow: 0 0 0 4px rgba(0, 108, 180, .16);
}

body.vent-page input[type="submit"],
body.vent-page button.sign-btn,
body.vent-page .sign-btn,
body.vent-page input.btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--vent-azure);
    background-image: none;
    color: #ffffff;
    font-family: var(--vent-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 108, 180, .28);
}

body.vent-page input[type="submit"]:hover,
body.vent-page .sign-btn:hover {
    background: var(--vent-azure-deep);
}

body.vent-page .sign-up-container a {
    color: var(--vent-azure);
    font-weight: 700;
    text-decoration: none;
}

body.vent-page .sign-up-container a:hover {
    text-decoration: underline;
}

body.vent-page .field-hint,
body.vent-page .form-intro {
    color: var(--vent-ink-muted);
}

/* ---------------------------------------------------------------- the legal documents */

/* The documents' own template leaves room for its fixed header and footer; theirs are gone. */
body.vent-legal .page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

body.vent-legal .body-container {
    width: 100%;
    max-width: 900px;
    margin: 8px auto 48px;
    padding: 0 24px;
    box-sizing: border-box;
    font-family: var(--vent-font);
}

body.vent-legal .section {
    margin-top: 20px;
    padding: 28px;
    border: 1px solid var(--vent-line);
    border-radius: 18px;
    background: var(--vent-night-2);
    color: var(--vent-on-night);
    font-family: var(--vent-font);
    line-height: 1.65;
}

body.vent-legal .section h2,
body.vent-legal .section h3,
body.vent-legal .section h4 {
    font-family: var(--vent-font);
    color: #ffffff;
}

body.vent-legal .section a {
    color: var(--vent-cyan);
}

body.vent-legal .minimize-btn {
    border-radius: 8px;
    background: transparent;
    color: var(--vent-muted);
}

@media (max-width: 640px) {
    .vent-links {
        display: none;
    }

    body.vent-page .sign-up-container {
        width: calc(100% - 32px);
        padding: 24px 18px;
    }

    body.vent-legal .section {
        padding: 20px;
    }
}
