@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
    --bk-base-100: #ffffff;
    --bk-base-200: #f4ede6;
    --bk-base-300: #ebe2d8;
    --bk-base-content: #1f1b16;

    --bk-ink-900: #1f1b16;
    --bk-ink-700: #4a4036;
    --bk-ink-500: #6f665d;

    --bk-primary: #233B4D;
    --bk-primary-hover: #1C2F3E;
    --bk-accent: #FF6F00;

    --bk-accent-500: var(--bk-primary);
    --bk-accent-600: var(--bk-primary-hover);
    --bk-accent-content: #ffffff;

    --bk-danger: #c13c3c;
    --bk-danger-soft: rgba(193, 60, 60, 0.18);
    --bk-success: #2f9d57;
    --bk-success-soft: rgba(47, 157, 87, 0.16);

    --bk-border: #e6dcd2;
    --bk-border-strong: #d9cec3;
    --bk-border-focus: var(--bk-primary);
    --bk-border-width: 1px;

    --bk-radius-field: 12px;
    --bk-radius-box: 28px;

    --bk-shadow-card: 0 28px 70px rgba(35, 59, 77, 0.16);
    --bk-focus-ring: 0 0 0 3px rgba(35, 59, 77, 0.25);
    --bk-transition: 180ms ease;
}

.terme-auth {
    background: #ffffff;
    padding: 0;
    min-height: calc(100svh - 5rem);
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    position: relative;
}

.terme-auth,
.terme-auth * {
    box-sizing: border-box;
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.terme-auth__shell {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: none;
    border: 0;
    min-height: calc(100svh - 5rem);
    block-size: calc(100svh - 5rem);
    padding: 0;
}

.terme-auth__panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(2rem, 4.2vw, 4rem) clamp(1.5rem, 3.8vw, 4rem);
    background: #ffffff;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-block-size: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.terme-auth__panel-inner {
    width: min(34.5rem, 100%);
    margin: 0 auto;
    position: relative;
}

.terme-auth--vendor[data-auth-active="signup"] .terme-auth__panel {
    align-items: flex-start;
}

.terme-auth__views {
    position: relative;
}

.terme-auth__mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem;
    border-radius: 999rem;
    border: 0.0625rem solid #d8d2ca;
    background: #f4f4f4;
    box-shadow: none;
    margin-bottom: 1.6rem;
}

.terme-auth__mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.6rem 1rem;
    border-radius: 999rem;
    color: var(--bk-ink-500);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background var(--bk-transition), color var(--bk-transition), box-shadow var(--bk-transition);
}

.terme-auth__mode-btn:hover {
    color: var(--bk-ink-900);
}

.terme-auth__mode-btn.is-active {
    background: var(--bk-primary);
    color: #fff;
    box-shadow: none;
}

.terme-auth__mode-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.1875rem rgba(35, 59, 77, 0.18);
}

.terme-auth__view {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

.terme-auth__view.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: terme-auth-fade-up 420ms ease both;
}

.terme-auth__media-stack {
    position: relative;
    min-height: calc(100svh - 5rem);
    block-size: 100%;
    background: #e9e1d8;
    min-block-size: 0;
}

.terme-auth__media {
    position: relative;
    background: #e9e1d8;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-block-size: 0;
}

.terme-auth__media--image {
    isolation: isolate;
}

.terme-auth__media.terme-auth__media-pane {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-block-size: 0;
}

.terme-auth__media.terme-auth__media-pane.is-active {
    display: grid;
}

.terme-auth__media-figure {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.terme-auth__media-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    animation: terme-auth-zoom 1200ms ease both;
}

.terme-auth__media--insights {
    padding: 0.5rem clamp(1rem, 1.8vw, 1.5rem) 1rem;
    background: radial-gradient(circle at top right, #fdf8f3 0%, #f7f2ec 48%, #efe8df 100%);
}

@media (min-width: 60.0625rem) {
    .terme-auth--vendor .terme-auth__media--insights[data-auth-media="signup"] {
        padding-top: clamp(2rem, 4.2vw, 4rem);
        padding-right: clamp(1.5rem, 3.8vw, 4rem);
        padding-left: clamp(1.5rem, 3.8vw, 4rem);
    }
}

.terme-auth-plan-insights {
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0.55rem;
    width: 100%;
}

.terme-auth-plan-insights__header {
    display: grid;
    gap: 0;
    padding: 0;
}

.terme-auth-plan-insights__header h3 {
    margin: 0;
    color: var(--bk-ink-900);
    font-size: clamp(1.3rem, 1.75vw, 1.6rem);
    line-height: 1.05;
}

.terme-auth-plan-insights__header p {
    margin: 0;
    color: var(--bk-ink-500);
    font-size: 0.9rem;
    line-height: 1.15;
    max-width: 100%;
}

.terme-auth-plan-focus {
    border: 0.0625rem solid #d7dce4;
    border-radius: 1.1rem;
    background: #ffffff;
    padding: 0.95rem;
    display: grid;
    gap: 0.58rem;
    box-shadow: 0 0.65rem 1.4rem rgba(31, 59, 83, 0.08);
}

.terme-auth-plan-focus[data-plan-theme="starter"] {
    border-color: #d6dce5;
}

.terme-auth-plan-focus[data-plan-theme="professional"] {
    border-color: rgba(255, 111, 0, 0.45);
    box-shadow: 0 0.75rem 1.5rem rgba(255, 111, 0, 0.12);
}

.terme-auth-plan-focus[data-plan-theme="enterprise"] {
    border-color: rgba(35, 59, 77, 0.4);
    box-shadow: 0 0.75rem 1.5rem rgba(35, 59, 77, 0.12);
}

.terme-auth-plan-focus__head {
    display: grid;
    gap: 0.35rem;
}

.terme-auth-plan-focus__head h4 {
    margin: 0;
    font-size: clamp(1.15rem, 1.5vw, 1.38rem);
    line-height: 1.2;
    color: var(--bk-ink-900);
}

.terme-auth-plan-focus__ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999rem;
    background: #1f3b53;
    color: #ffffff;
    min-height: 1.45rem;
    max-width: fit-content;
    padding: 0 0.62rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.terme-auth-plan-focus__ribbon.is-hidden {
    display: none;
}

.terme-auth-plan-focus__price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.32rem;
}

.terme-auth-plan-focus__price-value {
    color: var(--bk-ink-900);
    font-size: clamp(1.45rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.1;
}

.terme-auth-plan-focus__price-period {
    color: var(--bk-ink-500);
    font-size: 0.92rem;
    font-weight: 600;
}

.terme-auth-plan-focus__subtitle {
    margin: 0;
    color: var(--bk-ink-500);
    font-size: 0.88rem;
    line-height: 1.45;
}

.terme-auth-plan-focus__lists {
    display: block;
}

.terme-auth-plan-focus__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    gap: 0.45rem;
}

.terme-auth-plan-focus__list.is-active {
    display: grid;
}

.terme-auth-plan-focus__list li {
    display: grid;
    grid-template-columns: 0.95rem minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
    color: var(--bk-ink-700);
    font-size: 0.85rem;
    line-height: 1.42;
}

.terme-auth-plan-focus__list-icon {
    color: #ff6f00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.terme-auth-plan-focus__list-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.terme-auth-plan-compare {
    border: 0.0625rem solid #d7dce4;
    border-radius: 1.1rem;
    background: #ffffff;
    padding: 0.82rem;
    box-shadow: 0 0.55rem 1.25rem rgba(31, 59, 83, 0.08);
}

.terme-auth-plan-compare__title {
    margin-bottom: 0.58rem;
    color: var(--bk-ink-900);
    font-size: 0.98rem;
    font-weight: 700;
}

.terme-auth-plan-compare__table {
    display: grid;
    gap: 0.18rem;
}

.terme-auth-plan-compare__row {
    display: grid;
    grid-template-columns: minmax(11rem, 1.7fr) repeat(var(--terme-compare-cols, 3), minmax(0, 1fr));
    gap: 0.2rem;
}

.terme-auth-plan-compare__cell {
    border-radius: 0.65rem;
    min-height: 2.15rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.76rem;
    line-height: 1.28;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bk-ink-700);
    background: #f5f8fb;
    white-space: normal;
}

.terme-auth-plan-compare__cell--label {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    color: var(--bk-ink-900);
    background: #eef3f8;
}

.terme-auth-plan-compare__cell--head {
    font-weight: 700;
    color: var(--bk-ink-900);
}

.terme-auth-plan-compare__cell.is-active-plan {
    color: #0f2f46;
    font-weight: 700;
    background: rgba(255, 111, 0, 0.16);
}

.termesaas_login_step,
.termesaas_pending_step,
.termesaas_step_2,
.termesaas_step_3 {
    display: none;
}

.termesaas_login_step.is-active,
.termesaas_pending_step.is-active {
    display: block;
}

.termesaas_header,
.termesaas_signup_completed_title,
.termesaas_forgot_password_completed_title {
    font-family: "Playfair Display", "Georgia", serif;
    color: var(--bk-ink-900);
    font-size: clamp(1.85rem, 2.3vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

.termesaas_subtitle,
.termesaas_signup_completed_subtitle,
.termesaas_forgot_password_completed_subtitle,
.termesaas_check_your_email {
    color: var(--bk-ink-500);
    font-size: 0.98rem;
    line-height: 1.5;
}

.termesaas_form {
    display: grid;
    gap: 1.2rem;
}

.termesaas_signup_step_plan,
.termesaas_signup_step_account {
    display: none;
}

.termesaas_signup_step_plan.is-active,
.termesaas_signup_step_account.is-active {
    display: block;
}

.terme-auth #terme-toastr {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    border: 0.0625rem solid var(--bk-border);
    background: var(--bk-base-200);
    color: var(--bk-ink-700);
    box-shadow: 0 0.6rem 1.6rem rgba(35, 59, 77, 0.12);
}

.terme-auth #terme-toastr.is-error {
    border-color: var(--bk-danger);
    background: var(--bk-danger-soft);
    color: var(--bk-ink-900);
}

.terme-auth #terme-toastr.is-success {
    border-color: var(--bk-success);
    background: var(--bk-success-soft);
    color: var(--bk-ink-900);
}

.terme-auth #terme-toastr .terme-toast-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--bk-base-100);
    border: 0.0625rem solid var(--bk-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terme-auth #terme-toastr .terme-toast-img img {
    width: 1.1rem;
    height: 1.1rem;
}

.terme-auth #terme-toastr .terme-toast-details {
    flex: 1;
    min-width: 0;
}

.terme-auth #terme-toastr .terme-toast-description {
    font-size: 0.92rem;
    line-height: 1.45;
}

.terme-auth #terme-toastr .terme-toast-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: var(--bk-ink-500);
    cursor: pointer;
    transition: background var(--bk-transition), color var(--bk-transition);
}

.terme-auth #terme-toastr .terme-toast-remove:hover {
    color: var(--bk-ink-900);
    background: rgba(31, 27, 22, 0.08);
}

.termesaas_form_element,
.termesaas_signup .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.termesaas_form_element.is-invalid label {
    color: var(--bk-danger);
}

.termesaas_form_element.is-invalid input,
.termesaas_form_element.is-invalid textarea {
    border-color: var(--bk-danger);
    box-shadow: 0 0 0 0.1875rem var(--bk-danger-soft);
    background: #fff7f7;
}

.termesaas_form_element_checkbox.is-invalid {
    border: 0.0625rem solid var(--bk-danger);
    background: var(--bk-danger-soft);
    border-radius: var(--bk-radius-field);
    padding: 0.6rem 0.75rem;
}

.termesaas_field_error {
    color: var(--bk-danger);
    font-size: 0.85rem;
    line-height: 1.4;
}

.termesaas_form_element_checkbox .termesaas_field_error {
    flex-basis: 100%;
    padding-left: 2.75rem;
}

.termesaas_form_element_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.termesaas_form label,
.termesaas_signup input[type="radio"] ~ label,
.termesaas_signup input[type="checkbox"] ~ label {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--bk-ink-700);
}

.termesaas_form > div:not(.termesaas_form_element):not(.termesaas_resend_trigger) {
    margin-top: -0.2rem;
}

.termesaas_form > .termesaas_signin_forgot {
    margin-bottom: 0.35rem;
}

.termesaas_form > .termesaas_signin_actions {
    margin-top: 0.85rem;
}

.termesaas_signup_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.termesaas_signup_actions--single {
    justify-content: flex-end;
}

.termesaas_signup_back_btn,
.termesaas_completion_back_btn {
    min-height: 2.625rem;
    min-width: 2.625rem;
    padding: 0;
    border: 0.0625rem solid rgba(15, 23, 42, 0.18);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--bk-ink-700);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.termesaas_signup_back_btn svg,
.termesaas_completion_back_btn svg {
    width: 1rem;
    height: 1rem;
}

.termesaas_signup_back_btn:hover,
.termesaas_signup_back_btn:focus-visible,
.termesaas_completion_back_btn:hover,
.termesaas_completion_back_btn:focus-visible {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--bk-ink-900);
}

.termesaas_form input[type="text"],
.termesaas_form input[type="password"],
.termesaas_form input[type="email"],
.termesaas_form input[type="number"],
.termesaas_form input[type="time"],
.termesaas_form input,
.termesaas_signup .form-control,
#terme_tenant_custom_form textarea.form-control {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: var(--bk-border-width) solid var(--bk-border);
    border-radius: var(--bk-radius-field);
    background: #fbfaf8;
    color: var(--bk-ink-900);
    font-size: 1rem;
    font-weight: 400;
    transition: border-color var(--bk-transition), box-shadow var(--bk-transition), background var(--bk-transition);
}

#terme_tenant_custom_form textarea.form-control {
    min-height: 120px;
    padding-top: 0.75rem;
}

.termesaas_form input:focus,
.termesaas_signup .form-control:focus,
#terme_tenant_custom_form textarea.form-control:focus {
    outline: none;
    border-color: var(--bk-border-focus);
    box-shadow: var(--bk-focus-ring);
    background: #ffffff;
}

.termesaas_input_group {
    display: flex;
    align-items: stretch;
}

.termesaas_input_group.is-invalid > span,
.termesaas_input_group.is-invalid > input {
    border-color: var(--bk-danger);
}

.termesaas_input_group.is-invalid > input {
    box-shadow: 0 0 0 3px var(--bk-danger-soft);
    background: #fff7f7;
}

.termesaas_input_group > span {
    display: inline-flex;
    align-items: center;
    padding: 0 0.9rem;
    border: var(--bk-border-width) solid var(--bk-border);
    border-right: none;
    border-radius: var(--bk-radius-field) 0 0 var(--bk-radius-field);
    background: var(--bk-base-200);
    color: var(--bk-ink-500);
    font-size: 0.95rem;
}

.termesaas_input_group > input {
    border-radius: 0 var(--bk-radius-field) var(--bk-radius-field) 0;
}

.termesaas_domain_hint {
    font-size: 0.86rem;
    color: var(--bk-ink-500);
    line-height: 1.4;
}

.termesaas_domain_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--bk-radius-field);
    border: 1px dashed var(--bk-border);
    background: var(--bk-base-200);
    color: var(--bk-ink-700);
    font-size: 0.9rem;
}

.termesaas_domain_preview_label {
    color: var(--bk-ink-500);
}

.termesaas_domain_preview_value {
    color: var(--bk-ink-900);
    font-weight: 500;
}

.termesaas_domain_error {
    display: none;
    color: var(--bk-danger);
    font-size: 0.85rem;
    line-height: 1.4;
}

.termesaas_required_star {
    color: var(--bk-accent);
    margin-left: 0.2rem;
}

.termesaas_btn_primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: calc(var(--bk-radius-field) + 2px);
    border: 1px solid var(--bk-accent-500);
    background: var(--bk-accent-500);
    color: var(--bk-accent-content);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    transition: transform var(--bk-transition), box-shadow var(--bk-transition), background var(--bk-transition), border-color var(--bk-transition);
    cursor: pointer;
    text-decoration: none;
}

.termesaas_btn_primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.termesaas_footer .termesaas_btn_primary {
    width: auto;
    padding-inline: 1.5rem;
}

.termesaas_btn_primary:hover {
    background: var(--bk-accent-600);
    border-color: var(--bk-accent-600);
    box-shadow: 0 12px 24px rgba(35, 59, 77, 0.22);
    transform: translateY(-1px);
}

.termesaas_btn_primary:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus-ring);
}

.termesaas_btn_link {
    background: none;
    border: none;
    padding: 0;
    color: var(--bk-primary);
    font-weight: 400;
    cursor: pointer;
}

.termesaas_btn_link:hover {
    color: var(--bk-primary-hover);
}

.termesaas_form_element_checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.86rem;
    color: var(--bk-ink-700);
    flex-wrap: wrap;
    border: 0.0625rem solid #ece3db;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.termesaas_legal_consent {
    position: relative;
    cursor: pointer;
}

.termesaas_form_element .termesaas_legal_consent__input {
    position: absolute;
    inline-size: 0.0625rem;
    block-size: 0.0625rem;
    width: 0.0625rem;
    min-height: 0;
    height: 0.0625rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.termesaas_legal_consent__control {
    inline-size: 1.35rem;
    block-size: 1.35rem;
    flex: 0 0 1.35rem;
    margin-top: 0;
    position: relative;
    border: 0.125rem solid rgba(105, 130, 154, 0.9);
    border-radius: 0.45rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--bk-transition), box-shadow var(--bk-transition), background var(--bk-transition);
}

.termesaas_legal_consent__control::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    inline-size: 0.5rem;
    block-size: 0.84rem;
    border: solid #fff;
    border-width: 0 0.13rem 0.13rem 0;
    transform: translate(-50%, -58%) rotate(45deg);
    opacity: 0;
    transition: opacity 120ms ease;
}

.termesaas_legal_consent__input:checked + .termesaas_legal_consent__control {
    background: var(--bk-primary);
    border-color: var(--bk-primary);
    box-shadow: 0 0.25rem 0.75rem rgba(35, 59, 77, 0.2);
}

.termesaas_legal_consent__input:checked + .termesaas_legal_consent__control::after {
    opacity: 1;
}

.termesaas_signup input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    accent-color: var(--bk-accent-500);
}

.termesaas_legal_consent__input:focus-visible,
.termesaas_signup input[type="radio"]:focus-visible {
    outline: none;
}

.termesaas_signup input[type="radio"]:focus-visible {
    box-shadow: var(--bk-focus-ring);
    border-radius: 999px;
}

.termesaas_legal_consent__input:focus-visible + .termesaas_legal_consent__control {
    border-color: var(--bk-border-focus);
    box-shadow: var(--bk-focus-ring);
}

.termesaas_form_element_checkbox.is-invalid .termesaas_legal_consent__control {
    border-color: var(--bk-danger);
    background: #fff7f7;
    box-shadow: 0 0 0 0.1875rem var(--bk-danger-soft);
}

.termesaas_legal_consent__text {
    flex: 1 1 0;
    min-width: 0;
    padding-top: 0;
    line-height: 1.45;
    font-size: 0.86rem;
    color: #66707d;
    cursor: pointer;
}

.termesaas_legal_consent__text a {
    color: var(--bk-primary);
    font-weight: 500;
    text-underline-offset: 0.125rem;
}

.termesaas_legal_consent__text a:hover {
    color: var(--bk-primary-hover);
}

.termesaas_legal_consent__text a:focus-visible {
    outline: none;
    box-shadow: var(--bk-focus-ring);
    border-radius: 0.25rem;
}

.termesaas_form_element .termesaas_forgot_password {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--bk-ink-500);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
}

.termesaas_form_element .termesaas_forgot_password img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transform: translateY(1px);
}

.termesaas_footer {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--bk-ink-500);
    font-size: 0.95rem;
    border-top: 1px solid var(--bk-border);
    padding-top: 1.2rem;
}

.termesaas_footer a {
    color: var(--bk-primary);
    font-weight: 500;
}

.termesaas_footer a:hover {
    color: var(--bk-accent);
}

.termesaas_pending_notice {
    margin-top: 0.85rem;
    color: var(--bk-ink-700);
    background: var(--bk-base-200);
    border: 1px dashed var(--bk-border);
    border-radius: var(--bk-radius-field);
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.termesaas_email_success,
.termesaas_signup_completed,
.termesaas_forgot_password_completed {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.termesaas_email_success img,
.termesaas_signup_completed img,
.termesaas_forgot_password_completed img {
    max-width: 150px;
}

.termesaas_resend_activation {
    margin-top: 1rem;
    align-items: center;
    gap: 0.75rem;
}

.termesaas_signup_completed_footer,
.termesaas_forgot_password_completed_footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.termesaas_step_progress_bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.termesaas_step_progress_bar_line {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--bk-border);
    position: relative;
    overflow: hidden;
}

.termesaas_step_progress_bar_line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--bk-accent);
    border-radius: inherit;
}

.termesaas_step_progress_bar_line[data-step="2"]::after {
    width: 50%;
}

.termesaas_step_progress_bar_line[data-step="3"]::after {
    width: 100%;
}

.termesaas_step_progress_bar_txt {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bk-ink-500);
    white-space: nowrap;
}

.termesaas_text_primary {
    color: var(--bk-ink-900);
}

.termesaas_company_image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.6rem;
}

.termesaas_company_image_border {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px dashed rgba(15, 23, 42, 0.15);
    background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.termesaas_company_image_border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.termesaas_company_image_border:hover,
.termesaas_company_image_border:focus-visible {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.termesaas_company_image_hint {
    font-size: 0.85rem;
    color: var(--bk-ink-500);
    text-align: center;
    max-width: 220px;
    line-height: 1.4;
}

#termesaas_company_image_input {
    display: none;
}

#terme_tenant_custom_form {
    display: grid;
    gap: 1rem;
}

.terme-signup-plan-picker {
    border: 0.0625rem solid #dbe3eb;
    border-radius: 1.25rem;
    background: #f9fbff;
    padding: 1rem;
}

.terme-signup-plan-picker__header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.terme-signup-plan-picker__title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--bk-ink-900);
    line-height: 1.15;
}

.terme-signup-plan-picker__subtitle {
    font-size: 1rem;
    color: var(--bk-ink-500);
    line-height: 1.4;
}

.terme-signup-plan-picker__trial {
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    border-radius: 999rem;
    padding: 0.375rem 0.85rem;
    background: rgba(249, 115, 22, 0.12);
    color: #9a3412;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
}

.terme-signup-plan-cycle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.25rem;
    inline-size: 100%;
    border-radius: 999rem;
    background: #e8ecf2;
    margin-bottom: 0.95rem;
}

.terme-signup-plan-cycle__btn {
    border: 0;
    border-radius: 999rem;
    min-height: 2.3rem;
    padding: 0.3rem 0.75rem;
    background: transparent;
    color: var(--bk-ink-600, #475569);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.terme-signup-plan-cycle__btn.is-active {
    background: #fff;
    color: var(--bk-ink-900);
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.08);
}

.terme-signup-plan-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terme-signup-plan-card {
    position: relative;
    border: 0.0625rem solid #d0d8e2;
    border-radius: 1rem;
    background: #fff;
    color: inherit;
    padding: 1rem 0.9rem 0.85rem;
    text-align: left;
    display: grid;
    gap: 0.45rem;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.terme-signup-plan-card:hover {
    transform: translateY(-0.0625rem);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.06);
}

.terme-signup-plan-card.is-selected {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 0.125rem rgba(37, 99, 235, 0.08), 0 0.6rem 1.4rem rgba(15, 23, 42, 0.08);
}

.terme-signup-plan-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bk-ink-900);
    line-height: 1.15;
}

.terme-signup-plan-card__subtitle {
    font-size: 0.88rem;
    color: var(--bk-ink-500);
    line-height: 1.35;
    min-block-size: 2.35rem;
}

.terme-signup-plan-card__price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.terme-signup-plan-card__price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--bk-ink-900);
    letter-spacing: -0.02em;
}

.terme-signup-plan-card__period {
    font-size: 1rem;
    color: var(--bk-ink-500);
    line-height: 1.2;
    font-weight: 600;
}

.terme-signup-plan-card__annual {
    color: #677787;
    font-size: 0.9rem;
    line-height: 1.3;
}

.terme-signup-plan-card__ribbon {
    position: absolute;
    top: -0.52rem;
    left: 0.75rem;
    max-width: 60%;
    border-radius: 999rem;
    background: #1f3b53;
    color: #ffffff;
    padding: 0.14rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes terme-auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes terme-auth-zoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

@media (max-height: 56rem) and (min-width: 60.0625rem) {
    .terme-auth--vendor[data-auth-active="signin"] .terme-auth__panel,
    .terme-auth--vendor[data-auth-active="forgot"] .terme-auth__panel {
        align-items: flex-start;
    }
}

@media (max-width: 960px) {
    .terme-auth {
        min-height: auto;
    }

    .terme-auth__shell {
        grid-template-columns: 1fr;
        min-height: auto;
        block-size: auto;
    }

    .terme-auth__media-stack {
        min-height: auto;
        block-size: auto;
        order: 2;
    }

    .terme-auth__media {
        min-height: 16rem;
    }

    .terme-auth__media--insights {
        min-height: auto;
    }

    .terme-auth__panel-inner {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .terme-auth__mode-switch {
        width: 100%;
        justify-content: space-between;
    }

    .terme-auth__mode-btn {
        flex: 1 1 0;
    }

    .terme-auth__media--insights {
        padding: 0.85rem;
    }

    .terme-auth-plan-compare {
        overflow-x: auto;
    }

    .terme-auth-plan-compare__table {
        min-width: 28rem;
    }

    .terme-signup-plan-grid {
        grid-template-columns: 1fr;
    }

    .termesaas_signup_actions {
        flex-direction: column;
        align-items: stretch;
    }

    .termesaas_signup_actions--single {
        align-items: stretch;
    }

    .termesaas_signup_actions .termesaas_btn_primary {
        width: 100%;
    }

    .termesaas_signup_actions .termesaas_signup_back_btn,
    .termesaas_signup_actions .termesaas_completion_back_btn {
        width: auto;
        align-self: flex-start;
    }

    .termesaas_form_element_row {
        grid-template-columns: 1fr;
    }

    .termesaas_footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .terme-auth__view.is-active,
    .terme-auth__media-figure img {
        animation: none;
    }
}
