﻿:root {
    /* Fallback only — the real per-client color is injected by _Layout as
       --brand: @brand.Accent. Keep this in sync with the Default client accent. */
    --brand: #2f6fed;
    --brand-dark: color-mix(in srgb, var(--brand) 88%, black);
    --text: #17203a;
    --muted: #6b7686;
    --border: #d8dee9;
    --danger: #d64545;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #eef2f7 0%, #dde5f0 100%);
}

/* ---------- Layout shell ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 40, 90, 0.12);
    padding: 2.5rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-brand h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.auth-logo {
    height: 192px;
    width: auto;
    margin-bottom: .75rem;
}

.auth-subtitle {
    margin: .4rem 0 1.75rem;
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- Footer domain (A2P 10DLC opt-in visibility) ---------- */
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .85rem;
}

.auth-footer a {
    color: var(--muted);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Hide the RCL page's redundant in-body headings/divider (brand already shows the title) */
main h1,
main h2,
main hr {
    display: none;
}

/* Hide the external-services column on the built-in Login page */
.col-lg-offset-2,
.col-md-offset-2 {
    display: none;
}

/* ---------- Form fields (label above input) ---------- */
.form-floating,
.mb-3:not(.checkbox),
.form-group {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 1.15rem;
}

.form-floating > label,
.form-group > label,
label.form-label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: #3a4557;
}

.form-control {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

/* ---------- Remember-me checkbox (left aligned, inline) ---------- */
.checkbox,
.form-check {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: .5rem;
    margin: .25rem 0 1.25rem;
    color: var(--muted);
    font-size: .9rem;
}

.checkbox > label,
.form-check > label {
    display: block;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox input[type="checkbox"],
.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

/* ---------- Consent block (checkbox + full disclosure text) ---------- */
.consent-block {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    text-align: left;
    margin: .25rem 0 1.25rem;
}

/* Checkbox + consent copy share one row; checkbox pinned to the first line. */
.consent-block .consent-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .5rem;
    margin: 0;
}

.consent-block .consent-check .form-check-input {
    margin-top: .2rem;
}

.consent-block .consent-check .form-check-label {
    display: block;
    line-height: 1.4;
}

.consent-block .consent-agree {
    display: block;
    color: var(--text);
}

.consent-block .consent-disclosure {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.4;
}

/* ---------- Button ---------- */
.btn,
button[type="submit"],
.w-100 {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.btn:hover,
button[type="submit"]:hover {
    background: var(--brand-dark);
}

/* ---------- Links ---------- */
a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

a:hover { text-decoration: underline; }

.auth-links {
    margin-top: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .9rem;
}

/* ---------- Validation ---------- */
.text-danger,
.validation-summary-errors {
    color: var(--danger);
    font-size: .85rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.5rem;
}

.app-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.app-links .btn:hover {
    text-decoration: none;
    color: #fff;
}

/* Center the intro copy on this page */
.access-intro {
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 .5rem;
}
