/* Sign-in and sign-up pages (Areas/Identity/Pages/Shared/_AuthLayout.cshtml). Colours match the app's theme. */
:root {
    --auth-primary: #4154f1;
    --auth-primary-hover: #3243d6;
    --auth-navy: #012970;
    --auth-text: #2c3345;
    --auth-muted: #6c757d;
    --auth-border: #dfe3ec;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f6f9ff;
    color: var(--auth-text);
    font-family: "Open Sans", sans-serif;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---- Brand panel */
.auth-brand {
    position: relative;
    display: none;
    flex: 0 0 44%;
    max-width: 560px;
    flex-direction: column;
    padding: 40px 48px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at 10% 95%, rgba(113, 127, 245, .55) 0, rgba(113, 127, 245, 0) 45%),
        linear-gradient(150deg, var(--auth-navy) 0%, #2a3fc9 60%, var(--auth-primary) 100%);
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-brand {
        display: flex;
    }
}

.auth-brand-body {
    margin: auto 0;
    padding: 32px 0;
}

.auth-brand h2 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.auth-brand p {
    color: rgba(255, 255, 255, .8);
    font-size: 1.05rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.auth-features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.auth-features i {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, .14);
}

.auth-features b {
    display: block;
    font-weight: 600;
}

.auth-features span {
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}

.auth-brand-foot {
    color: rgba(255, 255, 255, .6);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--auth-navy);
}

.auth-logo img {
    width: 36px;
    height: 36px;
}

.auth-logo-light,
.auth-logo-light:hover {
    color: #fff;
}

/* ---- Form side */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-logo-mobile {
    margin-bottom: 28px;
}

@media (min-width: 992px) {
    .auth-logo-mobile {
        display: none;
    }
}

.auth-title {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--auth-navy);
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--auth-muted);
    margin-bottom: 24px;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: #0f6a3e;
    background: #e1f6ea;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: 6px;
}

.auth-card .form-control {
    padding: .65rem .85rem;
    border-color: var(--auth-border);
    border-radius: 10px;
}

.auth-card .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .2rem rgba(65, 84, 241, .15);
}

.auth-card .form-control.input-validation-error {
    border-color: #dc3545;
}

/* An icon inside the start of the field */
.auth-field {
    position: relative;
}

.auth-field > .bi {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b5;
    pointer-events: none;
}

.auth-field > .form-control {
    padding-left: 2.4rem;
}

.auth-field > .form-control.has-toggle {
    padding-right: 2.75rem;
}

.auth-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8a93a6;
    padding: 4px 8px;
    border-radius: 6px;
}

.auth-toggle:hover,
.auth-toggle:focus-visible {
    color: var(--auth-primary);
    background: #eef0fe;
}

.auth-card .field-validation-error {
    display: block;
    font-size: .8rem;
    margin-top: 4px;
}

/* The page-level error list: hidden until there is something to show */
.auth-card .validation-summary-valid {
    display: none;
}

.auth-card .validation-summary-errors {
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: #842029;
    font-size: .9rem;
}

.auth-card .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.auth-card .validation-summary-errors ul:has(> li:only-child) {
    padding-left: 0;
    list-style: none;
}

.auth-hint {
    font-size: .8rem;
    color: var(--auth-muted);
    margin-top: 6px;
}

/* Password rules that tick off as they are met */
.auth-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: .78rem;
    color: var(--auth-muted);
}

.auth-rules li::before {
    content: "\F28A"; /* bi-circle */
    font-family: "bootstrap-icons";
    margin-right: 4px;
    font-size: .7rem;
}

.auth-rules li.met {
    color: #198754;
}

.auth-rules li.met::before {
    content: "\F26A"; /* bi-check-circle-fill */
}

.auth-submit {
    padding: .7rem 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-submit:hover,
.auth-submit:focus {
    background: var(--auth-primary-hover);
    border-color: var(--auth-primary-hover);
}

.auth-divider {
    border-top: 1px solid var(--auth-border);
    margin: 24px 0 18px;
}

.auth-foot {
    font-size: .9rem;
    color: var(--auth-muted);
    text-align: center;
}

.auth-foot p {
    margin-bottom: 8px;
}

/* Plain links only: a link styled as a button (e.g. "Log in" after a password reset) keeps the button's white text */
.auth-card a:not(.btn) {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:not(.btn):hover {
    text-decoration: underline;
}

.auth-note {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 18px;
    border-radius: 10px;
    background: #eef0fe;
    color: #3a4377;
    font-size: .82rem;
}

.auth-note i {
    color: var(--auth-primary);
}

/* ---- Message pages (check your email, link expired...) */
.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: var(--auth-primary);
    background: #eef0fe;
}

.auth-icon.is-warning {
    color: #a15c07;
    background: #fff4e0;
}

.auth-icon.is-success {
    color: #0f6a3e;
    background: #e1f6ea;
}

.auth-alert {
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: .9rem;
    background: #fff4e0;
    border: 1px solid #f7d9a6;
    color: #6b4205;
}

.auth-dev {
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: .85rem;
    background: #f1f3f8;
    border: 1px dashed #b8bfd0;
}

.auth-readonly {
    background: #f1f3f8 !important;
    color: var(--auth-muted);
}

.auth-link-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--auth-primary);
    font-weight: 600;
}

.auth-link-button:hover {
    text-decoration: underline;
}
