/* Signed-out pages (Views/Shared/_AuthLayout.cshtml): the TrueGivers sign-in design
   (app.testing.truegivers.com/Users/Login) - a split screen with who the product is for on the left
   in the brand color and one form on the right, flat fields and a full-width button. On a phone the
   brand panel becomes a bar above the form. Product colors are the --auth-* tokens; for another
   product change only that block. Requires Bootstrap 5. */
:root {
    --auth-accent: #9C27AC;            /* buttons, links, focus (5.9:1 on white) */
    --auth-accent-rgb: 156, 39, 172;
    --auth-accent-hover: #84208F;
    --auth-accent-active: #6E1A78;
    --auth-brand-from: #4A1053;        /* brand panel gradient */
    --auth-brand-to: #9C27AC;
    --auth-brand-icon: #F5C9FA;        /* feature icons on the brand panel */
    --auth-muted: #6e6e80;
    --auth-line: #e5e5e5;
}

body.auth-body { margin: 0; padding: 0; background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.auth { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; }

.auth-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem; background: var(--auth-brand-from); background-image: linear-gradient(160deg, var(--auth-brand-from) 0%, var(--auth-brand-to) 100%); color: #fff; }
.auth-mark { display: inline-flex; align-self: flex-start; text-decoration: none; }
.auth-logo { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1rem; border-radius: .75rem; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.auth-logo img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.auth-pitch { max-width: 28rem; }
.auth-headline { margin: 0; font-size: 2rem; line-height: 1.2; font-weight: 600; }
.auth-pitch ul { display: grid; gap: 1.1rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.auth-pitch li { display: flex; align-items: center; gap: .9rem; color: rgba(255, 255, 255, .92); line-height: 1.35; }
.auth-pitch li i { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: rgba(255, 255, 255, .14); color: var(--auth-brand-icon); }
.auth-foot { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.auth-foot a { color: rgba(255, 255, 255, .92); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: #fff; }
.auth-panel { width: 100%; max-width: 26rem; }

.auth-title { margin: 0 0 1.5rem; font-size: 1.75rem; font-weight: 600; }
.auth-lede { margin: -.75rem 0 1.5rem; color: var(--auth-muted); }

.auth .form-label { font-weight: 500; margin-bottom: .35rem; }
.auth .form-control { padding: .6rem .85rem; border-radius: .5rem; border-color: #d0d5dd; }
.auth .form-control:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 .2rem rgba(var(--auth-accent-rgb), .2); }
.auth .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth .input-group .btn-outline-secondary { border-color: #d0d5dd; color: var(--auth-muted); border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; }
.auth .input-group .btn-outline-secondary:hover { background: #f2f4f7; color: #212529; }
.auth .form-check-input:checked { background-color: var(--auth-accent); border-color: var(--auth-accent); }
.auth .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--auth-accent-rgb), .2); }
.auth .form-check-label { color: #555; }
.auth .field-validation-error, .auth .validation-summary-errors { color: #b42318; font-size: .9rem; }
.auth .validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.auth .validation-summary-valid { display: none; }

.auth .btn-primary { padding: .65rem 1rem; font-weight: 600; border-radius: .5rem; background: var(--auth-accent); border-color: var(--auth-accent); }
.auth .btn-primary:hover, .auth .btn-primary:focus { background: var(--auth-accent-hover); border-color: var(--auth-accent-hover); }
.auth .btn-primary:active { background: var(--auth-accent-active) !important; border-color: var(--auth-accent-active) !important; }

.auth-main a { color: var(--auth-accent); text-decoration: none; }
.auth-main a:hover { text-decoration: underline; }

.auth-help { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--auth-line); }
.auth-help-title { margin: 0 0 .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--auth-muted); }
.auth-help ul { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.auth-help li a { display: inline-flex; align-items: baseline; gap: .45rem; }
.auth-help li i { width: 1rem; text-align: center; color: var(--auth-muted); }

.auth-links { margin: 1.5rem 0 0; padding: 0; list-style: none; text-align: center; font-size: .925rem; color: var(--auth-muted); }
.auth-links li + li { margin-top: .35rem; }

.auth .alert { border-radius: .5rem; }

@media (max-width: 991.98px) {
    .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .auth-brand { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; padding: .85rem 1.25rem; }
    .auth-logo { padding: .4rem .6rem; border-radius: .5rem; }
    .auth-logo img { height: 30px; max-width: 150px; }
    .auth-headline { font-size: 1.05rem; }
    .auth-pitch ul, .auth-foot { display: none; }
    .auth-main { align-items: flex-start; padding: 2rem 1rem; }
}
@media (max-width: 600px) { .auth-headline { display: none; } }
@media (max-width: 480px) { .auth-help ul { grid-template-columns: 1fr; } }

/* "or" divider and Google/Microsoft buttons (TrueGivers auth-or / SSO block) */
.auth-or { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: var(--auth-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--auth-line); }
.auth-external { display: grid; gap: .6rem; }
.auth .auth-external-button { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .6rem 1rem; border-radius: .5rem; border-color: #d0d5dd; color: #212529; font-weight: 500; background: #fff; }
.auth .auth-external-button:hover { background: #f2f4f7; color: #212529; border-color: #c2c8d0; }
.auth-code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
