/* LUQOM GROUP — Authenticator login
   Brand tokens taken from luqom.com: Red Hat Text, ink #20232E,
   accent #3A77A8, body grey #5D606E, square corners throughout. */

:root {
    --lq-ink:          #20232E;
    --lq-ink-soft:     #262C38;
    --lq-body:         #5D606E;
    --lq-accent:       #3A77A8;
    --lq-accent-dark:  #2F6189;
    --lq-line:         #DFE0E4;
    --lq-line-soft:    #EBEBEB;
    --lq-surface:      #FFFFFF;
    --lq-danger:       #A33A38;
    --lq-danger-bg:    #FBF0F0;
    --lq-font:         "Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-family: var(--lq-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--lq-body);
    background-color: var(--lq-ink);
    background-image:
        radial-gradient(1200px 600px at 50% -10%, #313949 0%, rgba(49, 57, 73, 0) 70%),
        linear-gradient(160deg, #262C38 0%, #20232E 55%, #1A1D26 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- card ---------- */

.lq-card {
    width: 100%;
    max-width: 420px;
    background: var(--lq-surface);
    border-top: 3px solid var(--lq-accent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    padding: 44px 40px 36px;
}

.lq-brand {
    display: block;
    width: 168px;
    height: auto;
    margin: 0 auto 30px;
}

.lq-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: center;
    color: var(--lq-ink);
}

.lq-subtitle {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: var(--lq-body);
}

/* ---------- alert ---------- */

.lq-alert {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--lq-danger);
    background: var(--lq-danger-bg);
    color: var(--lq-danger);
    font-size: 14px;
}

/* ---------- form ---------- */

.lq-field { margin-bottom: 18px; }

.lq-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--lq-ink);
}

.lq-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--lq-ink);
    background: var(--lq-surface);
    border: 1px solid var(--lq-line);
    border-radius: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.lq-input::placeholder { color: #A9ACB6; }

.lq-input:hover { border-color: #C3C5CC; }

.lq-input:focus {
    outline: none;
    border-color: var(--lq-accent);
    box-shadow: 0 0 0 3px rgba(58, 119, 168, .16);
}

.lq-button {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--lq-accent);
    border: 1px solid var(--lq-accent);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.lq-button:hover { background: var(--lq-accent-dark); border-color: var(--lq-accent-dark); }

.lq-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 119, 168, .3);
}

.lq-button:active { background: #295375; border-color: #295375; }

/* ---------- small screens ---------- */

@media (max-width: 480px) {
    body { padding: 24px 16px; }
    .lq-card { padding: 34px 24px 28px; }
    .lq-brand { width: 146px; }
}

/* ---------- single sign-on ---------- */

.lq-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 0;
    padding: 14px 18px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--lq-ink);
    background: var(--lq-surface);
    border: 1px solid #B9BDC7;
    border-radius: 0;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.lq-sso:hover {
    border-color: var(--lq-ink);
    background: #FAFAFB;
    box-shadow: 0 2px 12px rgba(32, 35, 46, .12);
}

.lq-sso:focus-visible {
    outline: none;
    border-color: var(--lq-accent);
    box-shadow: 0 0 0 3px rgba(58, 119, 168, .3);
}

.lq-sso:active {
    background: #F2F3F5;
    border-color: var(--lq-ink-soft);
    box-shadow: none;
}

/* The mark keeps its own colours on every state -- it is Microsoft's, not
   ours, and recolouring it is what makes these buttons look counterfeit. */
.lq-sso-mark {
    flex: 0 0 auto;
    display: block;
}

/* ---------- divider ---------- */

.lq-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9A9DA8;
}

.lq-divider::before,
.lq-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--lq-line-soft);
}

/* The password form is the second path, so its submit loses the extra top
   margin it needed when it was the only one. */
.lq-card form .lq-button { margin-top: 22px; }

/* ---------- access request page ---------- */

.lq-card--wide { max-width: 560px; }

.lq-notice {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--lq-accent);
    background: #F1F6FA;
    color: var(--lq-ink);
    font-size: 14px;
}

.lq-section { margin-bottom: 28px; }

.lq-section-title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--lq-line-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--lq-ink);
}

.lq-empty { margin: 0; font-size: 14px; color: var(--lq-body); }

.lq-roles, .lq-history { margin: 0; padding: 0; list-style: none; }

.lq-roles li {
    padding: 7px 0;
    border-bottom: 1px solid var(--lq-line-soft);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--lq-ink);
    word-break: break-all;
}

.lq-roles li:last-child { border-bottom: none; }

.lq-history li {
    padding: 12px 0;
    border-bottom: 1px solid var(--lq-line-soft);
}

.lq-history li:last-child { border-bottom: none; }

.lq-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.lq-request-meta {
    margin: 0 0 6px;
    font-size: 12px;
    color: #8A8D99;
}

.lq-request-body {
    margin: 0;
    font-size: 14px;
    color: var(--lq-ink);
    white-space: pre-wrap;
}

.lq-request-note {
    margin: 8px 0 0;
    padding-left: 12px;
    border-left: 2px solid var(--lq-line);
    font-size: 14px;
    color: var(--lq-body);
    white-space: pre-wrap;
}

.lq-status {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.lq-status--approved { background: #E7F1EA; color: #1F6B45; }
.lq-status--rejected { background: #EFEFF1; color: #5D606E; }
.lq-status--pending  { background: #FBF2E3; color: #8A5A00; }

.lq-signout {
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--lq-line-soft);
    font-size: 13px;
    text-align: center;
}

.lq-signout a { color: var(--lq-accent); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- sign-in migration notice ---------- */

/* The notice carries a few sentences instead of one line, so it gets room to
   breathe and a title to scan; the accent rule keeps it informational rather
   than alarming, which is what .lq-alert is for. */
.lq-notice--migration {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--lq-body);
}

.lq-notice--migration p { margin: 0 0 10px; }

.lq-notice--migration p:last-child { margin-bottom: 0; }

.lq-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--lq-ink);
}

.lq-notice--migration a {
    color: var(--lq-accent);
    word-break: break-word;
}
