/* The sign-in pages (Views/Shared/_AuthLayout.cshtml): Peach Software's green, look B. */

:root {
    --auth-green: #338500;
    --auth-green-dark: #2a6c00;
    --auth-green-light: #52b852;
    --auth-forest: #18472d;
    --auth-line: #dfe5dc;
    --auth-wash: #f6f9f4;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 12% 8%, #d9ffca 0, transparent 38%),
        radial-gradient(circle at 92% 92%, #e3f5da 0, transparent 45%),
        var(--auth-wash);
    background-attachment: fixed;
}

.auth-lang {
    position: absolute;
    top: 16px;
    right: 16px;
}

.auth-shell {
    min-height: 100vh;
    padding: 56px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 18px;
    border-top: 5px solid var(--auth-green);
    padding: 34px 40px 38px;
    box-shadow: 0 20px 50px rgba(24, 71, 45, .12), 0 1px 3px rgba(0, 0, 0, .05);
}

.auth-logo {
    display: block;
    height: 58px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 22px;
}

.auth-title {
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--auth-forest);
    text-align: center;
    margin: 0 0 6px;
}

.auth-sub {
    color: var(--auth-muted);
    text-align: center;
    margin: 0 0 26px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    font-size: .8125rem;
    color: var(--auth-muted);
    margin: -4px 0 20px;
}

.auth-foot {
    text-align: center;
    font-size: .8125rem;
    color: var(--auth-muted);
    margin: 20px 0 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: .75rem;
    margin: 18px 0 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--auth-line);
}

.auth-copy {
    color: #7b8a7e;
    font-size: .75rem;
    margin: 20px 0 0;
    text-align: center;
}

/* Bootstrap inside the card */

/* Links only: a link styled as a button keeps the button's colours. */
.auth-card a:not(.btn) {
    color: var(--auth-green-dark);
    font-weight: 500;
    text-decoration: none;
}

.auth-card a:not(.btn):hover {
    text-decoration: underline;
}

.auth-card .btn-primary,
.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus,
.auth-card .btn-primary:active {
    color: #fff;
}

.auth-card .form-label {
    font-size: .8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.auth-card .form-control {
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    padding: 12px 14px;
}

.auth-card .form-control:focus {
    border-color: var(--auth-green-light);
    box-shadow: 0 0 0 4px rgba(82, 184, 82, .18);
}

.auth-card .form-check-input:checked {
    background-color: var(--auth-green);
    border-color: var(--auth-green);
}

.auth-card .form-check-input:focus {
    border-color: var(--auth-green-light);
    box-shadow: 0 0 0 4px rgba(82, 184, 82, .18);
}

.auth-card .btn {
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
}

.auth-card .btn-primary {
    background: var(--auth-green);
    border-color: var(--auth-green);
    font-family: Manrope, system-ui, sans-serif;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(51, 133, 0, .28);
}

.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus,
.auth-card .btn-primary:active {
    background: var(--auth-green-dark);
    border-color: var(--auth-green-dark);
}

.auth-card .btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(82, 184, 82, .35);
}

/* The passkey partial's button and external sign-in buttons */
.auth-card .btn-outline-primary {
    background: #fff;
    border-color: var(--auth-line);
    color: var(--auth-forest);
    font-weight: 500;
}

.auth-card .btn-outline-primary:hover,
.auth-card .btn-outline-primary:focus,
.auth-card .btn-outline-primary:active {
    background: var(--auth-wash);
    border-color: var(--auth-green-light);
    color: var(--auth-forest);
}

.auth-card .alert {
    border-radius: 10px;
    font-size: .875rem;
}

.auth-card .alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The validation summary tag helper always renders; hide it until it has errors. */
.auth-card .validation-summary-valid {
    display: none;
}

.auth-card .text-danger {
    font-size: .8125rem;
}

.auth-code {
    text-align: center;
    letter-spacing: 4px;
    font-size: 1.25rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px 30px;
    }

    .auth-logo {
        height: 48px;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}
