/* Shared public shell, authentication forms, and legal pages. */

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #000000;
    font-family: "Times New Roman", Times, serif;
}

p {
    margin: 0;
    font-size: 20px;
}

a {
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 20px 10px;
    background: #000000;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

#navbar .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.public-logo-container {
    width: 70px;
}

.public-logo {
    width: auto;
    height: 50px;
}

.public-header-text {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
}

.btn {
    border: 0;
    border-radius: 20px !important;
    box-shadow: none;
}

.btn-primary,
.btn-primary:visited {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    box-shadow: 0 0 0 .2rem rgb(0 0 0 / 20%);
}

.btn-primary:disabled,
.btn-primary.disabled {
    border-color: #6c757d;
    background: #6c757d;
    color: #ffffff;
}

.btn-header {
    display: flex;
    width: auto;
    min-width: 70px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 0;
    border-radius: 15px;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    white-space: nowrap;
}

.btn-header:hover {
    border: 0;
    background: #000000;
    color: #ffffff !important;
}

#navbar .btn-header {
    width: auto;
    min-width: 70px;
    padding: 6px 14px;
    white-space: nowrap;
}

.content {
    flex: 1;
}

.register-section {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
}

.neumorphic-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 5px 10px rgb(0 0 0 / 10%), 0 -10px 10px rgb(0 0 0 / 3%);
    color: #333333;
}

.login-card {
    width: 100%;
    min-width: min(100%, 700px);
    max-width: 700px;
}

.login-card h2 {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.login-card .form-control,
.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 !important;
    padding: .75rem;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: rgb(189 191 194) 3px 3px 6px 0 inset, rgb(255 255 255 / 50%) -3px -3px 6px 1px inset;
}

.login-card label {
    margin-bottom: .5rem;
    margin-left: .8rem;
}

.login-card .btn-primary {
    border: 0;
    border-radius: 20px;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    padding: .5rem 1.5rem;
}

.login-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.login-actions > * {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 320px;
}

.password-field-wrapper {
    position: relative;
    z-index: 2;
}

.password-requirements-tooltip {
    position: absolute;
    top: calc(100% - .25rem);
    left: 0;
    display: none;
    width: 100%;
    box-sizing: border-box;
    padding: .75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: .75rem;
    background: #ffffff;
    box-shadow: 0 .5rem 1rem rgb(33 37 41 / 15%);
    color: #495057;
    font-size: .85rem;
    pointer-events: none;
}

.password-requirements-tooltip.is-visible {
    display: block;
}

.password-requirements-tooltip-title {
    margin: 0 0 .4rem;
    color: #212529;
    font-weight: 600;
}

.password-requirements-tooltip ul {
    margin: 0;
    padding-left: 1.25rem;
}

.password-requirements-tooltip li {
    margin: .2rem 0;
    color: #dc3545;
}

.captcha-widget {
    display: flex;
    width: 100%;
    justify-content: center;
}

.captcha-widget iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
}

.captcha-pending,
.captcha-pending:disabled {
    border-color: #495057 !important;
    background: #495057 !important;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 1;
}

.footer {
    position: relative;
    background: #000000;
}

.footer-divider {
    color: #ffffff;
}

.footer .footer-row-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
}

.footer-col {
    color: #ffffff;
    text-align: center;
}

.footer-col p,
.footer-col a {
    color: #ffffff;
    font-size: 12px;
}

.footer-col .links {
    gap: 1rem;
    padding: 0 1rem;
}

.footer .links.row {
    margin-right: 0;
    margin-left: 0;
}

.footer-provider-logo {
    display: block;
}

.footer-provider-logo-small {
    height: 25px;
}

.footer-provider-logo-gdpr {
    height: 85px;
}

.footer-provider-logo-medium {
    height: 50px;
}

.footer-provider-logo-regulatory {
    width: 250px;
    margin: 5px;
}

.footer-brand-icon {
    width: auto;
    height: 30px;
}

.public-message-stack {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

.legal-page-shell {
    flex: 1;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
    background: #ffffff;
}

.legal-page-layout {
    display: grid;
    max-width: 1320px;
    margin: 0 auto;
    grid-template-columns: minmax(240px, 300px) minmax(0, 960px);
    gap: 3rem;
    align-items: start;
}

.legal-paper {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(2rem, 6vw, 5rem);
    background: #ffffff;
    box-shadow: 0 12px 40px rgb(33 37 41 / 12%);
    color: #1c1c1c;
    font-family: "Times New Roman", Times, serif;
    font-size: .95rem;
    line-height: 1.8;
}

.legal-paper h1,
.legal-paper h2,
.legal-paper h3,
.legal-paper h4 {
    color: #171717;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.3;
}

.legal-paper h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    text-align: center;
}

.legal-paper h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.18rem;
}

.legal-paper h3 {
    margin-top: 1.75rem;
    margin-bottom: .75rem;
    font-size: 1.05rem;
}

.legal-paper p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-document-meta {
    color: #6c757d;
    text-align: center;
}

.legal-toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    margin: 0;
    padding: 1.75rem 2rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
}

.legal-toc h2,
.legal-toc .legal-toc-title {
    margin: 0 0 .75rem;
    font-size: 1.2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.legal-toc ol {
    margin: 0;
    padding-left: 1.5rem;
}

.legal-toc a {
    color: #242424;
    font-size: 1rem;
}

.legal-toc a.legal-toc-current {
    text-decoration: underline;
    text-underline-offset: .2em;
}

@media (max-width: 576px) {
    .legal-page-shell {
        padding: 1rem 0;
    }

    .legal-page-layout {
        display: block;
    }

    .legal-paper {
        padding: 2rem 1.25rem;
        box-shadow: 0 6px 20px rgb(33 37 41 / 10%);
    }

    .legal-toc {
        position: static;
        margin: 2rem 0 3rem;
        padding: 1.25rem;
    }
}
