:root {
    --ob-auth-brand: #84251d;
    --ob-auth-brand-hover: #6f1e18;
    --ob-auth-text: #28282d;
    --ob-auth-muted: #777982;
    --ob-auth-border: #dedee3;
    --ob-auth-danger: #b42318;
    --ob-auth-success: #177245;
}

html,
body.ob-auth-page {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 50% 24%, rgba(132, 37, 29, .055), transparent 31rem),
        #fff;
}

.ob-auth-page {
    color: var(--ob-auth-text);
    font-family: sans, sans-serif !important;
}

.ob-auth-card,
.ob-auth-card input,
.ob-auth-card button,
.ob-auth-card a {
    font-family: sans, sans-serif !important;
}

.ob-auth-card h1,
.ob-auth-card h2 {
    font-family: sans-md, sans, sans-serif !important;
}

.ob-auth-card p {
    font-family: sans-light, sans, sans-serif !important;
}

.ob-auth-shell {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ob-auth-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 430px;
    padding: 2.65rem 2.25rem 2rem;
    border: 1px solid rgba(30, 30, 34, .045);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 46px rgba(35, 28, 27, .09);
    text-align: center;
}

.ob-auth-logo {
    display: inline-flex;
    min-height: 42px;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
    color: var(--ob-auth-brand);
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
}

.ob-auth-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 48px;
}

.ob-auth-step h1,
.ob-auth-step h2 {
    margin: 0 0 .55rem;
    color: var(--ob-auth-text);
    font-size: 1.45rem;
    line-height: 1.5;
    font-weight: 800;
}

.ob-auth-step > p {
    margin: 0 0 1.7rem;
    color: var(--ob-auth-muted);
    font-size: .9rem;
    line-height: 1.8;
}

.ob-auth-step input {
    box-sizing: border-box;
    width: 100%;
    height: 54px;
    padding: 0 1rem;
    border: 1px solid var(--ob-auth-border);
    border-radius: .85rem;
    background: #fff;
    color: var(--ob-auth-text);
    font: inherit;
    font-size: 1.05rem;
    outline: none;
    text-align: center;
    transition: border-color .18s, box-shadow .18s;
}

.ob-auth-step input:focus {
    border-color: var(--ob-auth-brand);
    box-shadow: 0 0 0 3px rgba(132, 37, 29, .11);
}

.ob-auth-step .ob-auth-otp-input {
    direction: ltr;
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: .38em;
}

.ob-auth-step button[type="submit"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    margin-top: .85rem;
    padding: .75rem 1.25rem;
    border: 0;
    border-radius: .85rem;
    background: var(--ob-auth-brand);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: background .18s, transform .18s;
}

.ob-auth-step button[type="submit"]:hover {
    background: var(--ob-auth-brand-hover);
}

.ob-auth-step button[type="submit"]:active {
    transform: translateY(1px);
}

.ob-auth-step button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.ob-auth-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    margin-right: .5rem;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: ob-auth-spin .7s linear infinite;
}

button.is-loading .ob-auth-spinner {
    display: inline-block;
}

.ob-auth-message {
    min-height: 1.35rem;
    padding-top: .35rem;
    color: var(--ob-auth-danger);
    font-size: .8rem;
    line-height: 1.7;
    visibility: hidden;
}

.ob-auth-message.is-visible {
    visibility: visible;
}

.ob-auth-status {
    min-height: 0;
    color: var(--ob-auth-success);
    font-size: .82rem;
}

.ob-auth-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ob-auth-link {
    padding: .2rem 0;
    border: 0;
    background: transparent;
    color: var(--ob-auth-brand);
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
}

.ob-auth-link:last-child {
    color: var(--ob-auth-muted);
}

.ob-auth-terms {
    margin: 1.55rem 0 0;
    color: var(--ob-auth-muted);
    font-size: .72rem;
    line-height: 1.8;
}

.ob-auth-terms a {
    color: inherit;
    text-underline-offset: 3px;
}

.ob-auth-footer {
    margin-top: 1.4rem;
    color: #92939a;
    font-size: .75rem;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ob-auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 479px) {
    .ob-auth-shell {
        justify-content: flex-start;
        padding-top: 9vh;
    }
    .ob-auth-card {
        padding: 2.1rem 1.25rem 1.65rem;
        border-radius: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-auth-spinner {
        animation-duration: 1.4s;
    }
    .ob-auth-step input,
    .ob-auth-step button[type="submit"] {
        transition: none;
    }
}
