﻿/* =====================================================================
   Tenant sign-up page (Views/Login/Signup.cshtml) - standalone, no site layout.
   Left: the form. Right: a decorative panel of frosted cards on a brand-blue gradient.
   ===================================================================== */
:root {
    --su-ink: #101828;
    --su-text: #344054;
    --su-muted: #667085;
    --su-line: #e4e7ec;
    --su-field: #ffffff;
    --su-page: #eef1f5;
    --su-dark-blue: #00225d;
    --su-blue: #1d5fd6;
    --su-light-blue: #53bdec;
    --su-error: #d92d20;
    --su-radius: 10px;
    --su-font: "Manrope", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.su-body {
    margin: 0;
    padding: 24px;
    background-color: var(--su-page);
    color: var(--su-text);
    font-family: var(--su-font);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* The white card holding both halves */
.su-shell {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 1.15fr;
    gap: 24px;
    min-height: calc(100vh - 48px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
}

/* ---------------- Form side ---------------- */
.su-form-side {
    display: flex;
    flex-direction: column;
    padding: 12px 40px 24px 44px;
}

.su-brand {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 8px;
}

    .su-brand img {
        display: block;
        height: 34px;
        width: auto;
    }

.su-form-wrap {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
    padding: 28px 0;
}

.su-title {
    margin: 0 0 8px;
    color: var(--su-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.su-subtitle {
    margin: 0 0 24px;
    color: var(--su-muted);
    font-size: 13.5px;
}

.su-alert {
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid #fecdca;
    border-radius: var(--su-radius);
    background-color: #fef3f2;
    color: #b42318;
    font-size: 13px;
}

    .su-alert p {
        margin: 0;
    }

.su-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.su-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.su-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .su-field label {
        color: var(--su-ink);
        font-size: 13px;
        font-weight: 600;
    }

.su-req {
    margin-left: 2px;
    color: var(--su-error);
}

.su-field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--su-line);
    border-radius: var(--su-radius);
    background-color: var(--su-field);
    color: var(--su-ink);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .su-field input::placeholder {
        color: #98a2b3;
    }

    .su-field input:focus {
        outline: none;
        border-color: var(--su-blue);
        box-shadow: 0 0 0 4px rgba(29, 95, 214, 0.12);
    }

    .su-field input[aria-invalid="true"] {
        border-color: var(--su-error);
    }

        .su-field input[aria-invalid="true"]:focus {
            box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
        }

.su-error {
    color: var(--su-error);
    font-size: 12.5px;
}

.su-hint {
    color: var(--su-muted);
    font-size: 12.5px;
}

.su-password {
    position: relative;
}

    .su-password input {
        padding-right: 64px;
    }

.su-show {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--su-blue);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

    .su-show:hover {
        background-color: #f3f7fe;
    }

.su-submit {
    height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: var(--su-radius);
    background-color: var(--su-dark-blue);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

    .su-submit:hover {
        background-color: #0a2f77;
    }

    .su-submit:active {
        transform: translateY(1px);
    }

    .su-submit:focus-visible,
    .su-show:focus-visible,
    .su-switch a:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 2px;
    }

    .su-submit:disabled {
        opacity: 0.7;
        cursor: progress;
    }

.su-switch {
    margin: 22px 0 0;
    color: var(--su-muted);
    font-size: 13px;
}

    .su-switch a {
        color: var(--su-ink);
        font-weight: 700;
        text-decoration: none;
    }

        .su-switch a:hover {
            text-decoration: underline;
        }

/* Hidden field for bots */
.su-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------- Showcase side (decorative) ---------------- */
.su-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(60% 50% at 20% 60%, rgba(83, 189, 236, 0.85) 0%, rgba(83, 189, 236, 0) 70%),
        radial-gradient(55% 45% at 85% 30%, rgba(29, 95, 214, 0.9) 0%, rgba(29, 95, 214, 0) 70%),
        radial-gradient(70% 60% at 70% 95%, rgba(124, 160, 255, 0.9) 0%, rgba(124, 160, 255, 0) 70%),
        linear-gradient(160deg, #cfe3ff 0%, #8fb4f5 45%, #3d6fd8 100%);
}

.su-glow {
    position: absolute;
    inset: 18% -20% auto -20%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    filter: blur(30px);
    pointer-events: none;
}

.su-card {
    position: relative;
    width: min(320px, 78%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    background-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 40px rgba(0, 34, 93, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

/* Top card: cut off by the panel's top edge */
.su-card-top {
    margin-top: -40px;
    height: 170px;
    padding: 20px 26px 26px;
}

.su-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100%;
}

    .su-bars span {
        flex: 1 1 0;
        height: var(--h);
        border-radius: 4px 4px 2px 2px;
        background-color: rgba(29, 95, 214, 0.35);
    }

        .su-bars span.is-peak {
            background-color: rgba(0, 34, 93, 0.55);
        }

/* Main card */
.su-card-main {
    padding: 24px 26px 22px;
    background-color: rgba(255, 255, 255, 0.78);
}

.su-kicker {
    color: var(--su-dark-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.su-figure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.su-amount {
    color: var(--su-ink);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.su-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

    .su-trend b {
        padding: 2px 8px;
        border-radius: 999px;
        background-color: #ffffff;
        color: #067647;
        font-size: 11.5px;
    }

    .su-trend small {
        color: var(--su-text);
        font-size: 11px;
        font-weight: 600;
    }

.su-card-text {
    margin: 10px 0 16px;
    color: var(--su-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.su-split {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 8px;
    height: 96px;
}

    .su-split span {
        border-radius: 10px;
    }

.su-split-a,
.su-legend i.is-a {
    background-color: #ffffff;
}

.su-split-b,
.su-legend i.is-b {
    background-color: var(--su-light-blue);
}

.su-split-c,
.su-legend i.is-c {
    background-color: var(--su-dark-blue);
}

.su-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
    color: var(--su-text);
    font-size: 11px;
}

    .su-legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .su-legend i {
        width: 8px;
        height: 8px;
        border: 1px solid rgba(0, 34, 93, 0.15);
        border-radius: 50%;
    }

/* Bottom card: cut off by the panel's bottom edge */
.su-card-bottom {
    margin-bottom: -60px;
    padding: 26px 26px 80px;
}

.su-statement {
    margin: 0;
    color: rgba(0, 34, 93, 0.72);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ---------------- Smaller screens ---------------- */
@media (max-width: 980px) {
    .su-shell {
        grid-template-columns: 1fr;
    }

    .su-showcase {
        display: none;
    }

    .su-form-side {
        padding: 12px 24px 24px;
    }

    .su-form-wrap {
        max-width: 440px;
        margin: 24px auto;
    }
}

@media (max-width: 480px) {
    .su-body {
        padding: 0;
    }

    .su-shell {
        min-height: 100vh;
        padding: 8px;
        border-radius: 0;
        box-shadow: none;
    }

    .su-form-side {
        padding: 12px 16px 24px;
    }

    .su-title {
        font-size: 27px;
    }

    .su-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .su-field input,
    .su-submit {
        transition: none;
    }
}

/* =====================================================================
   Login page (Views/Login/Index.cshtml) - same layout, plus:
   ===================================================================== */

/* Sign in with Microsoft - outlined, like the design's social button */
.su-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--su-line);
    border-radius: var(--su-radius);
    background-color: #ffffff;
    color: var(--su-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .su-social:hover {
        border-color: #cfd4dc;
        background-color: #f9fafb;
        color: var(--su-ink);
    }

    .su-social:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 2px;
    }

.su-ms-logo {
    display: grid;
    grid-template-columns: 7px 7px;
    gap: 2px;
}

    .su-ms-logo i {
        display: block;
        width: 7px;
        height: 7px;
    }

        .su-ms-logo i:nth-child(1) { background-color: #f25022; }
        .su-ms-logo i:nth-child(2) { background-color: #7fba00; }
        .su-ms-logo i:nth-child(3) { background-color: #00a4ef; }
        .su-ms-logo i:nth-child(4) { background-color: #ffb900; }

/* "or" between the Microsoft button and the form */
.su-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--su-muted);
    font-size: 12.5px;
}

    .su-divider::before,
    .su-divider::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background-color: var(--su-line);
    }

/* Remember me + forgot password */
.su-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.su-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--su-text);
    font-size: 13px;
    cursor: pointer;
}

    .su-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: var(--su-dark-blue);
        cursor: pointer;
    }

.su-link {
    color: var(--su-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .su-link:hover {
        text-decoration: underline;
    }

    .su-link:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* ---------------- Invitation page (Views/Login/Invite.cshtml) ---------------- */
.su-field input.su-readonly {
    background-color: #f2f4f7;
    color: #475467;
    cursor: default;
}

    .su-field input.su-readonly:focus {
        box-shadow: none;
        border-color: #d0d5dd;
    }

.su-optional {
    font-weight: 400;
    color: #98a2b3;
}

a.su-submit.su-submit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    text-decoration: none;
}


/* ---------------- Login page: Microsoft sign-in (a company option) under the form ---------------- */
.su-social-note {
    margin: 8px 0 0;
    color: #98a2b3;
    font-size: 12px;
    text-align: center;
}

/* ---------------- Two-step verification (Views/Login/TwoFactor, TwoFactorSetup, RecoveryCodes) ---------------- */
.su-2fa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background-color: #eef4ff;
    color: var(--su-blue);
}

.su-2fa-icon-done {
    background-color: #ecfdf3;
    color: #067647;
}

.su-2fa-account {
    margin: -14px 0 22px;
    color: var(--su-text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* The code box: large, spaced digits */
.su-field input.su-code {
    height: 54px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

    .su-field input.su-code::placeholder {
        letter-spacing: 0.2em;
        font-weight: 600;
        color: #d0d5dd;
    }

    .su-field input.su-code.su-code-recovery {
        font-size: 18px;
        letter-spacing: 0.12em;
    }

.su-2fa-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 18px;
}

.su-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--su-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .su-link-button:hover {
        text-decoration: underline;
    }

    .su-link-button:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 2px;
        border-radius: 4px;
    }

.su-switch-small {
    font-size: 12.5px;
    line-height: 1.5;
}

/* Set-up: numbered steps with the QR code */
.su-form-wrap-wide {
    max-width: 480px;
}

.su-steps {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .su-steps > li {
        display: grid;
        grid-template-columns: 28px 1fr;
        gap: 14px;
        align-items: start;
    }

        .su-steps > li > div {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
            color: var(--su-muted);
            font-size: 13px;
            line-height: 1.5;
        }

            .su-steps > li > div > strong {
                color: var(--su-ink);
                font-size: 14px;
            }

.su-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--su-dark-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.su-qr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--su-line);
    border-radius: 12px;
    background-color: #ffffff;
}

    .su-qr img {
        flex: 0 0 auto;
        width: 160px;
        height: 160px;
        image-rendering: pixelated;
    }

.su-qr-key {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    font-size: 12.5px;
}

    .su-qr-key code {
        display: block;
        max-width: 100%;
        padding: 8px 10px;
        border-radius: 8px;
        background-color: #f2f4f7;
        color: var(--su-ink);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.04em;
        overflow-wrap: anywhere;
    }

.su-qr-meta {
    color: #98a2b3;
    overflow-wrap: anywhere;
}

.su-form-inline {
    margin-top: 8px;
    gap: 12px;
}

.visually-hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Recovery codes */
.su-recovery {
    border: 1px solid var(--su-line);
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
}

.su-recovery-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 0;
    padding: 16px 18px;
    list-style: none;
}

    .su-recovery-list code {
        color: var(--su-ink);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

.su-recovery-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--su-line);
    background-color: #f9fafb;
}

.su-secondary {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--su-line);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--su-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .su-secondary:hover {
        border-color: #cfd4dc;
        background-color: #f2f4f7;
    }

    .su-secondary:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 2px;
    }

.su-warning {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid #fedf89;
    border-radius: 10px;
    background-color: #fffaeb;
    color: #93370d;
    font-size: 12.5px;
}

.su-confirm {
    margin-top: 16px;
}

a.su-submit.su-submit-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .su-recovery-list {
        grid-template-columns: 1fr;
    }

    .su-qr {
        justify-content: center;
    }

        .su-qr img {
            width: 180px;
            height: 180px;
        }
}

@media print {
    .su-showcase,
    .su-brand,
    .su-recovery-actions,
    .su-confirm,
    .su-submit,
    .su-2fa-icon {
        display: none !important;
    }
}

/* The logo links to the home page */
a.su-brand {
    border-radius: 6px;
}

    a.su-brand:focus-visible {
        outline: 3px solid rgba(29, 95, 214, 0.35);
        outline-offset: 4px;
    }
