/* =========================================================
   SAAS AUTHENTICATION
   Login and public registration
   ========================================================= */

html,
body.saas-auth-body {
    min-height: 100%;
}

body.saas-auth-body {
    margin: 0;
    color: #253044;
    background: #f5f7fb;
    font-family: inherit;
}

.saas-auth-body *,
.saas-auth-body *::before,
.saas-auth-body *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.saas-auth-layout {
    display: grid;
    grid-template-columns: minmax(360px, 40%) minmax(0, 1fr);
    min-height: 100vh;
}


/* =========================================================
   SHOWCASE
   ========================================================= */

.saas-auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 100vh;
    padding: 38px 44px 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.saas-auth-showcase::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -180px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.saas-auth-showcase::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.saas-auth-showcase > * {
    position: relative;
    z-index: 1;
}

.saas-auth-brand img {
    display: block;
    max-width: 138px;
    max-height: 42px;
}

.saas-auth-showcase-copy {
    width: 100%;
    max-width: 540px;
    padding: 50px 0;
}

.saas-auth-eyebrow {
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.saas-auth-showcase-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 47px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -1.4px;
}

.saas-auth-showcase-copy > p {
    max-width: 500px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.saas-auth-features {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.saas-auth-features span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.5;
}

.saas-auth-features i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    font-size: 8px;
}

.saas-auth-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
}


/* =========================================================
   FORM AREA
   ========================================================= */

.saas-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 50px 28px;
    background: #ffffff;
}

.saas-auth-main.register {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.saas-auth-card {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.saas-auth-card.register {
    max-width: 720px;
}

.saas-auth-mobile-logo {
    display: none;
}

.saas-auth-card-head {
    margin-bottom: 29px;
}

.saas-auth-step {
    display: block;
    margin-bottom: 7px;
    color: #4d7ff7;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.saas-auth-card-head h2 {
    margin: 0;
    color: #202b3c;
    font-size: 27px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.55px;
}

.saas-auth-card-head p {
    margin: 8px 0 0;
    color: #8995a7;
    font-size: 12px;
    line-height: 1.65;
}


/* =========================================================
   ALERTS
   ========================================================= */

.saas-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 10px;
    line-height: 1.55;
}

.saas-auth-alert i {
    flex: 0 0 auto;
    margin-top: 2px;
}

.saas-auth-alert.danger {
    border-color: #f4ced2;
    color: #b83f4b;
    background: #fff6f7;
}

.saas-auth-alert.success {
    border-color: #c7eadf;
    color: #087e60;
    background: #f2fbf8;
}

.saas-auth-alert.warning {
    border-color: #f2dfbd;
    color: #a56b15;
    background: #fffaf1;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.saas-auth-honeypot {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.saas-auth-form {
    display: block;
}

.saas-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
}

.saas-auth-field {
    min-width: 0;
    margin-bottom: 17px;
}

.saas-auth-field.full {
    grid-column: 1 / -1;
}

.saas-auth-field > label {
    display: block;
    margin-bottom: 7px;
    color: #526074;
    font-size: 10px;
    font-weight: 650;
}


/* =========================================================
   INPUTS
   ========================================================= */

.saas-auth-input {
    position: relative;
}

.saas-auth-input > i {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #9aa6b7;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.saas-auth-input input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 42px 10px 39px;
    border: 1px solid #dfe5ed;
    border-radius: 7px;
    outline: 0;
    color: #273246;
    background: #ffffff;
    font-size: 11px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.saas-auth-input input::placeholder {
    color: #adb6c3;
}

.saas-auth-input input:hover {
    border-color: #c9d2df;
}

.saas-auth-input input:focus {
    border-color: #4d7ff7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(77, 127, 247, 0.1);
}

.saas-auth-input input.is-invalid {
    border-color: #df5d6a;
    box-shadow: 0 0 0 3px rgba(223, 93, 106, 0.08);
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.saas-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    outline: 0;
    color: #8e9bad;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.saas-password-toggle:hover {
    color: #4d7ff7;
    background: #f1f5fd;
}

.saas-password-toggle:focus-visible {
    outline: 2px solid rgba(77, 127, 247, 0.35);
    outline-offset: 1px;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.saas-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin-top: 5px;
    border-radius: 7px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 650;
}

.saas-auth-submit.loading {
    cursor: wait;
    opacity: 0.78;
}


/* =========================================================
   LOGIN / REGISTER SWITCH
   ========================================================= */

.saas-auth-switch {
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #edf0f4;
    color: #8995a7;
    font-size: 10px;
    text-align: center;
}

.saas-auth-switch a {
    margin-left: 4px;
    color: #4d7ff7;
    font-weight: 650;
    text-decoration: none;
}

.saas-auth-switch a:hover {
    color: #315fcb;
}


/* =========================================================
   LOGIN SECURITY NOTE
   ========================================================= */

.saas-auth-security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: #96a1b1;
    font-size: 9px;
    line-height: 1.55;
    text-align: center;
}

.saas-auth-security i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #7f8da1;
}


/* =========================================================
   PUBLIC REGISTER PLAN SELECTION
   ========================================================= */

.saas-register-plan-field {
    grid-column: 1 / -1;
    min-width: 0;
    margin-bottom: 22px;
}

.saas-register-plan-label {
    display: block;
    margin-bottom: 9px;
    color: #344054;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
}

.saas-register-plan-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.saas-register-plan-option {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.saas-register-plan-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.saas-register-plan-card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 105px;
    padding: 16px 17px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(16, 24, 40, 0.025);
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.saas-register-plan-option:hover
.saas-register-plan-card {
    border-color: #b8cdfc;
    box-shadow: 0 6px 18px rgba(50, 104, 239, 0.08);
    transform: translateY(-1px);
}

.saas-register-plan-indicator {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    margin-right: 13px;
    border: 1.5px solid #c8d1df;
    border-radius: 50%;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.saas-register-plan-check {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 9px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(-45deg) scale(0.6);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.saas-register-plan-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.saas-register-plan-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.saas-register-plan-name {
    color: #1d2939;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.saas-register-plan-trial {
    flex: 0 0 auto;
    color: #475467;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    text-align: right;
    white-space: nowrap;
}

.saas-register-plan-trial strong {
    color: #1d2939;
    font-weight: 700;
}

.saas-register-plan-pricing {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 17px;
}

.saas-register-plan-price {
    color: #101828;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
}

.saas-register-plan-period {
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.saas-register-plan-input:checked
+ .saas-register-plan-card {
    border-color: #3b82f6;
    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #f3f7ff 100%
        );
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.07),
        0 7px 18px rgba(59, 130, 246, 0.07);
}

.saas-register-plan-input:checked
+ .saas-register-plan-card
.saas-register-plan-indicator {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.saas-register-plan-input:checked
+ .saas-register-plan-card
.saas-register-plan-check {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.saas-register-plan-input:focus-visible
+ .saas-register-plan-card {
    outline: 3px solid rgba(59, 130, 246, 0.2);
    outline-offset: 2px;
}


/* =========================================================
   PASSWORD STRENGTH
   ========================================================= */

.saas-password-strength {
    position: relative;
    width: 100%;
    height: 3px;
    overflow: hidden;
    margin-top: 7px;
    border-radius: 4px;
    background: #e7ebf1;
}

.saas-password-strength span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #dc5a67;
    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

.saas-password-strength.score-1 span {
    width: 25%;
    background: #dc5a67;
}

.saas-password-strength.score-2 span {
    width: 50%;
    background: #df941f;
}

.saas-password-strength.score-3 span {
    width: 75%;
    background: #4d7ff7;
}

.saas-password-strength.score-4 span {
    width: 100%;
    background: #0b9d77;
}

.saas-field-help {
    display: block;
    margin-top: 6px;
    color: #99a4b3;
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   TERMS
   ========================================================= */

.saas-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 1px 0 18px;
    color: #778497;
    font-size: 9px;
    line-height: 1.55;
    cursor: pointer;
}

.saas-terms input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #4d7ff7;
    cursor: pointer;
}

.saas-terms span {
    display: block;
    min-width: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
    .saas-auth-layout {
        grid-template-columns:
            minmax(340px, 38%) minmax(0, 1fr);
    }

    .saas-auth-showcase {
        padding-right: 34px;
        padding-left: 34px;
    }

    .saas-auth-showcase-copy h1 {
        font-size: 35px;
    }
}

@media (max-width: 991.98px) {
    .saas-auth-layout,
    .saas-auth-layout.register {
        display: block;
        min-height: 100vh;
    }

    .saas-auth-showcase {
        display: none;
    }

    .saas-auth-main,
    .saas-auth-main.register {
        align-items: flex-start;
        flex-direction: column;
        min-height: 100vh;
        padding: 34px 20px;
    }

    .saas-auth-mobile-logo {
        display: block;
        width: 100%;
        max-width: 720px;
        margin: 0 auto 35px;
    }

    .saas-auth-mobile-logo img {
        display: block;
        max-width: 125px;
        max-height: 40px;
    }

    .saas-auth-card,
    .saas-auth-card.register {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .saas-auth-main,
    .saas-auth-main.register {
        padding: 25px 17px;
    }

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

    .saas-auth-card-head {
        margin-bottom: 24px;
    }

    .saas-auth-card-head h2 {
        font-size: 23px;
    }

    .saas-auth-form-grid {
        grid-template-columns: 1fr;
    }

    .saas-auth-field.full,
    .saas-register-plan-field {
        grid-column: auto;
    }

    .saas-register-plan-list {
        grid-template-columns: 1fr;
    }

    .saas-register-plan-card {
        min-height: auto;
        padding: 15px;
    }

    .saas-register-plan-heading {
        flex-direction: column;
        gap: 4px;
    }

    .saas-register-plan-trial {
        text-align: left;
        white-space: normal;
    }

    .saas-register-plan-pricing {
        margin-top: 15px;
    }

    .saas-auth-showcase-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .saas-auth-input input,
    .saas-password-toggle,
    .saas-register-plan-card,
    .saas-register-plan-indicator,
    .saas-register-plan-check,
    .saas-password-strength span {
        transition: none;
    }

    .saas-register-plan-option:hover
    .saas-register-plan-card {
        transform: none;
    }
}

/* =========================================================
   PASSWORD RESET
   ========================================================= */

.saas-auth-field-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -7px 0 17px;
}

.saas-auth-field-actions a {
    color: #4d7ff7;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.saas-auth-field-actions a:hover {
    color: #315fcb;
    text-decoration: none;
}

.saas-auth-expired {
    padding: 25px 20px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #f9fbfe;
    text-align: center;
}

.saas-auth-expired-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 50%;
    color: #c47a18;
    background: #fff4df;
    font-size: 21px;
}

.saas-auth-expired h3 {
    margin: 0;
    color: #253044;
    font-size: 17px;
    font-weight: 650;
}

.saas-auth-expired p {
    max-width: 310px;
    margin: 9px auto 20px;
    color: #8995a7;
    font-size: 11px;
    line-height: 1.65;
}

.saas-auth-expired .saas-auth-submit {
    margin-top: 0;
    color: #ffffff;
    text-decoration: none;
}

.saas-auth-switch a i {
    margin-right: 4px;
    font-size: 9px;
}

.registration-progress {
    display: flex;
    align-items: center;
    margin: 0 0 28px;
}

.registration-progress span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border: 1px solid #dce5f2;
    border-radius: 50%;
    background: #fff;
    color: #8a98ad;
    font-size: 12px;
    font-weight: 700;
}

.registration-progress span.active {
    border-color: #4285f4;
    background: #4285f4;
    color: #fff;
    box-shadow: 0 7px 18px rgba(66, 133, 244, 0.24);
}

.registration-progress i {
    display: block;
    height: 1px;
    flex: 1;
    margin: 0 9px;
    background: #e4eaf3;
}

.domain-check-result {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.domain-check-result.success {
    border-color: #bcebd6;
    background: #f1fcf7;
    color: #14734a;
}

.domain-check-result.error {
    border-color: #f3c9ce;
    background: #fff5f6;
    color: #b33142;
}

.domain-result-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.domain-result-head i {
    margin-top: 2px;
    font-size: 17px;
}

.domain-ns-group {
    margin-top: 14px;
}

.domain-ns-group > strong {
    display: block;
    margin-bottom: 7px;
    color: #738198;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.domain-ns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.domain-ns-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(109, 128, 158, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: #4a5870;
    font-family: monospace;
    font-size: 11px;
}

.domain-next-step {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cfe8dc;
    border-radius: 12px;
    background: #f7fcfa;
}

.domain-next-step-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dcf7ea;
    color: #15945d;
    font-size: 18px;
}

.domain-next-step strong {
    display: block;
    margin-bottom: 3px;
    color: #24324a;
    font-size: 13px;
}

.domain-next-step p {
    margin: 0;
    color: #8190a6;
    font-size: 11px;
    line-height: 1.5;
}

.registration-progress span.complete {
    border-color: #16b978;
    background: #e5f8f0;
    color: #159661;
}

.registration-progress > i.complete {
    background: #7ddcb6;
}

.domain-next-step-content {
    flex: 1;
}

.domain-next-step-content .btn {
    margin-top: 10px;
}

.registration-verified-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #bcebd6;
    border-radius: 14px;
    background: #f2fcf7;
}

.registration-verified-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #daf6e9;
    color: #11945c;
    font-size: 20px;
}

.registration-verified-card strong {
    display: block;
    margin: 2px 0 6px;
    color: #1f3f33;
    font-size: 15px;
}

.registration-verified-card p {
    margin: 0;
    color: #71867d;
    font-size: 12px;
    line-height: 1.7;
}

.registration-modal[hidden] {
    display: none !important;
}

.registration-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.registration-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 30, 52, 0.68);
    backdrop-filter: blur(5px);
}

.registration-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border: 1px solid rgba(225, 232, 243, 0.9);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(17, 30, 54, 0.28);
    text-align: center;
}

.registration-modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f9;
    color: #6f7c91;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.registration-modal-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #4285f4;
    font-size: 25px;
}

.registration-modal-dialog h3 {
    margin: 0 0 10px;
    color: #24324a;
    font-size: 20px;
}

.registration-modal-dialog > p {
    margin: 0 0 22px;
    color: #7d899d;
    font-size: 12px;
    line-height: 1.7;
}

.verification-code-input {
    width: 100%;
    height: 58px;
    border: 1px solid #d8e1ee;
    border-radius: 11px;
    outline: none;
    background: #f9fbfe;
    color: #24324a;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    transition: border-color .2s ease,
        box-shadow .2s ease;
}

.verification-code-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.registration-modal-dialog .saas-auth-submit {
    margin-top: 14px;
}

.verification-modal-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.6;
}

.verification-modal-message.success {
    border: 1px solid #bcebd6;
    background: #f1fcf7;
    color: #14734a;
}

.verification-modal-message.danger {
    border: 1px solid #f3c9ce;
    background: #fff5f6;
    color: #b33142;
}

.verification-resend {
    margin-top: 17px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4285f4;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.verification-resend:disabled {
    color: #a7b2c2;
    cursor: default;
}

.verification-countdown {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    color: #98a3b4;
    font-size: 10px;
}

.registration-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .registration-modal-dialog {
        padding: 30px 20px 24px;
        border-radius: 15px;
    }

    .verification-code-input {
        font-size: 22px;
        letter-spacing: 9px;
    }
}

.registration-next-button {
    margin-top: 12px;
}

.registration-plan-layout {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(66, 133, 244, 0.07),
            transparent 26%
        ),
        #f5f7fb;
}

.registration-plan-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(24px, calc((100% - 1180px) / 2));
    border-bottom: 1px solid #e7ecf4;
    background: rgba(255, 255, 255, 0.94);
}

.registration-plan-brand img {
    display: block;
    width: auto;
    height: 38px;
}

.registration-plan-account {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.registration-plan-account span {
    color: #28354a;
    font-size: 13px;
    font-weight: 700;
}

.registration-plan-account small {
    margin-top: 3px;
    color: #95a0b2;
    font-size: 10px;
}

.registration-plan-main {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 0 55px;
}

.registration-plan-progress {
    width: 100%;
    max-width: 390px;
    margin: 0 auto 34px;
}

.registration-plan-intro {
    max-width: 660px;
    margin: 0 auto 34px;
    text-align: center;
}

.registration-plan-intro h1 {
    margin: 8px 0 11px;
    color: #202d43;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.registration-plan-intro p {
    margin: 0;
    color: #7e8ba0;
    font-size: 13px;
    line-height: 1.75;
}

.registration-plan-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );
    gap: 20px;
    align-items: stretch;
}

.registration-plan-option {
    position: relative;
    display: block;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.registration-plan-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.registration-plan-card {
    display: flex;
    height: 100%;
    min-height: 500px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(35, 53, 83, 0.05);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.registration-plan-option:hover .registration-plan-card {
    transform: translateY(-3px);
    border-color: #b9cff3;
    box-shadow: 0 18px 38px rgba(35, 53, 83, 0.1);
}

.registration-plan-option.is-selected .registration-plan-card {
    border-color: #4285f4;
    box-shadow:
        0 0 0 3px rgba(66, 133, 244, 0.09),
        0 18px 42px rgba(37, 75, 137, 0.12);
}

.registration-plan-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.registration-plan-name {
    color: #22304a;
    font-size: 19px;
    font-weight: 700;
}

.registration-plan-card-head p {
    min-height: 42px;
    margin: 7px 0 0;
    color: #8895a8;
    font-size: 11px;
    line-height: 1.65;
}

.registration-plan-selector {
    display: inline-flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e1ee;
    border-radius: 50%;
    background: #fff;
    color: transparent;
    font-size: 12px;
    transition: all .2s ease;
}

.registration-plan-option.is-selected
.registration-plan-selector {
    border-color: #4285f4;
    background: #4285f4;
    color: #fff;
}

.registration-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 25px;
}

.registration-plan-price strong {
    color: #20304d;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.registration-plan-price span {
    color: #98a4b6;
    font-size: 11px;
}

.registration-plan-trial {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    margin-top: 11px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #edf7f2;
    color: #26825c;
    font-size: 10px;
}

.registration-plan-limits {
    display: grid;
    gap: 11px;
    margin: 24px 0 0;
    padding: 20px 0;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
    list-style: none;
}

.registration-plan-limits li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #56647a;
    font-size: 11px;
}

.registration-plan-limits i {
    color: #4285f4;
    font-size: 14px;
}

.registration-plan-modules {
    margin-top: 20px;
}

.registration-plan-section-title {
    display: block;
    margin-bottom: 11px;
    color: #9aa5b5;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.registration-plan-module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.registration-plan-module-list span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: 1px solid #e1e9f4;
    border-radius: 7px;
    background: #f8fafe;
    color: #607089;
    font-size: 9px;
}

.registration-plan-module-list i {
    color: #17a66b;
}

.registration-plan-no-module {
    margin: 0;
    color: #9ba6b6;
    font-size: 10px;
}

.registration-plan-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding: 18px;
    border: 1px solid #e3e9f2;
    border-radius: 14px;
    background: #ffffff;
}

.registration-plan-ready {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-top: 25px;
    padding: 23px;
    border: 1px solid #bfe7d5;
    border-radius: 16px;
    background: #f3fcf8;
}

.registration-plan-ready[hidden] {
    display: none !important;
}

.registration-plan-ready-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #d9f5e8;
    color: #13945c;
    font-size: 21px;
}

.registration-plan-ready-label {
    color: #1a9761;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.registration-plan-ready h3 {
    margin: 5px 0 6px;
    color: #244536;
    font-size: 16px;
}

.registration-plan-ready p {
    margin: 0;
    color: #71867d;
    font-size: 11px;
    line-height: 1.7;
}

.registration-plan-empty {
    max-width: 600px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid #e2e8f1;
    border-radius: 17px;
    background: #fff;
    text-align: center;
}

.registration-plan-empty > i {
    color: #f0a12f;
    font-size: 32px;
}

.registration-plan-empty h3 {
    margin: 15px 0 8px;
    color: #27364d;
    font-size: 17px;
}

.registration-plan-empty p {
    margin: 0;
    color: #8995a7;
    font-size: 11px;
    line-height: 1.75;
}

.registration-plan-footer {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid #e4eaf2;
    color: #9ba6b7;
    font-size: 10px;
}

@media (max-width: 767px) {
    .registration-plan-header {
        padding: 13px 20px;
    }

    .registration-plan-account {
        display: none;
    }

    .registration-plan-main {
        width: calc(100% - 28px);
        padding-top: 30px;
    }

    .registration-plan-intro h1 {
        font-size: 25px;
    }

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

    .registration-plan-card {
        min-height: auto;
    }

    .registration-plan-actions {
        flex-direction: column-reverse;
    }

    .registration-plan-actions .btn {
        width: 100%;
    }

    .registration-plan-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

.registration-provisioning-start {
    margin-top: 15px;
}

.provisioning-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(66, 133, 244, .12),
            transparent 34%
        ),
        #f4f7fb;
    color: #26344b;
}

.provisioning-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 35px 20px;
}

.provisioning-logo {
    width: auto;
    height: 42px;
    margin-bottom: 25px;
}

.provisioning-card {
    width: 100%;
    max-width: 570px;
    padding: 42px;
    border: 1px solid #e0e7f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(28, 47, 78, .12);
    text-align: center;
}

.provisioning-animation {
    position: relative;
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #ebf3ff;
    color: #4285f4;
    font-size: 32px;
}

.provisioning-animation span {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(66, 133, 244, .18);
    border-top-color: #4285f4;
    border-radius: 28px;
    animation: provisioning-spin 1.2s linear infinite;
}

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

.provisioning-card h1 {
    margin: 8px 0 10px;
    color: #22304a;
    font-size: 27px;
}

.provisioning-card > p {
    margin: 0;
    color: #7f8da2;
    font-size: 12px;
    line-height: 1.7;
}

.provisioning-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 25px 0;
}

.provisioning-summary span {
    padding: 13px;
    border: 1px solid #e5ebf3;
    border-radius: 10px;
    background: #f9fbfd;
    text-align: left;
}

.provisioning-summary small {
    display: block;
    margin-bottom: 4px;
    color: #99a5b6;
    font-size: 9px;
    text-transform: uppercase;
}

.provisioning-summary strong {
    display: block;
    overflow: hidden;
    color: #34435b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provisioning-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8edf5;
}

.provisioning-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #4285f4,
        #18b983
    );
    transition: width .5s ease;
}

.provisioning-percent {
    display: block;
    margin-top: 9px;
    color: #4285f4;
    font-size: 12px;
}

.provisioning-error {
    margin: 20px 0 14px;
    padding: 13px;
    border: 1px solid #f2cbd0;
    border-radius: 10px;
    background: #fff5f6;
    color: #b33848;
    font-size: 11px;
    line-height: 1.6;
}

.provisioning-note {
    margin: 17px 0 0;
    color: #919daf;
    font-size: 10px;
}

@media (max-width: 575px) {
    .provisioning-card {
        padding: 30px 20px;
    }

    .provisioning-summary {
        grid-template-columns: 1fr;
    }
}

.registration-plan-payment-required {
    color: #a15c09;
    background: #fff8eb;
    border-color: #f6d79e;
}

.registration-plan-ready-description {
    margin: 8px 0 0;
    color: #69758d;
    font-size: 13px;
    line-height: 1.6;
}

.registration-payment-layout {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top right,
            rgba(65, 132, 244, 0.09),
            transparent 34%
        ),
        #f5f7fb;
}

.registration-payment-main {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 70px;
}

.registration-payment-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);
    gap: 22px;
    margin-top: 30px;
}

.registration-payment-card {
    padding: 28px;
    border: 1px solid #e4e9f2;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 14px 40px
        rgba(35, 55, 87, 0.06);
}

.registration-payment-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #8a96aa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.registration-payment-order {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.registration-payment-order > div {
    padding: 16px;
    border: 1px solid #e9edf4;
    border-radius: 13px;
    background: #f8faff;
}

.registration-payment-order small,
.registration-payment-plan small {
    display: block;
    margin-bottom: 6px;
    color: #8a96aa;
    font-size: 11px;
}

.registration-payment-order strong {
    color: #202c40;
    font-size: 18px;
}

.registration-payment-plan {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e9edf4;
    border-radius: 13px;
}

.registration-payment-plan > i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #3f87f5;
    background: #edf5ff;
    font-size: 18px;
}

.registration-payment-plan strong,
.registration-payment-plan span {
    display: block;
}

.registration-payment-plan strong {
    color: #202c40;
    font-size: 15px;
}

.registration-payment-plan span {
    margin-top: 3px;
    color: #8a96aa;
    font-size: 12px;
}

.registration-payment-due {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    color: #91600c;
    background: #fff8e9;
    font-size: 12px;
}

.registration-bank-list {
    display: grid;
    gap: 12px;
}

.registration-bank-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e7ebf2;
    border-radius: 13px;
    background: #fbfcff;
}

.registration-bank-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #16a085;
    background: #eaf9f5;
    font-size: 18px;
}

.registration-bank-content {
    min-width: 0;
}

.registration-bank-content strong,
.registration-bank-content span,
.registration-bank-content code {
    display: block;
}

.registration-bank-content strong {
    color: #202c40;
    font-size: 14px;
}

.registration-bank-content span {
    margin-top: 3px;
    color: #7f8ba0;
    font-size: 12px;
}

.registration-bank-content code {
    margin-top: 8px;
    color: #33415c;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    word-break: break-all;
}

.registration-payment-empty {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    color: #7a5a18;
    background: #fff8e8;
}

.registration-payment-empty p {
    margin: 0;
    line-height: 1.6;
}

.registration-payment-notice {
    display: flex;
    gap: 16px;
    margin-top: 22px;
    padding: 21px 24px;
    border: 1px solid #d9e7ff;
    border-radius: 15px;
    color: #315986;
    background: #eef5ff;
}

.registration-payment-notice > i {
    margin-top: 2px;
    font-size: 21px;
}

.registration-payment-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #254c79;
}

.registration-payment-notice p {
    margin: 0;
    line-height: 1.65;
}

.registration-payment-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 22px;
}

@media (max-width: 860px) {
    .registration-payment-main {
        width: min(100% - 24px, 680px);
        padding-top: 34px;
    }

    .registration-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .registration-payment-card {
        padding: 20px;
        border-radius: 15px;
    }

    .registration-payment-order {
        grid-template-columns: 1fr;
    }

    .registration-payment-notice {
        padding: 18px;
    }
}

.registration-payment-form-card,
.registration-payment-result {
    margin-top: 22px;
    padding: 28px;
    border: 1px solid #e3e9f2;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 14px 40px
        rgba(35, 55, 87, 0.06);
}

.registration-payment-form-head {
    margin-bottom: 24px;
}

.registration-payment-form-head h3,
.registration-payment-result h3 {
    margin: 0 0 8px;
    color: #202c40;
    font-size: 20px;
}

.registration-payment-form-head p,
.registration-payment-result p {
    margin: 0;
    color: #78849a;
    line-height: 1.65;
}

.registration-payment-result {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.registration-payment-result-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
}

.registration-payment-result.approved {
    border-color: #ccecdf;
    background: #f6fffb;
}

.registration-payment-result.approved
.registration-payment-result-icon {
    color: #169b68;
    background: #dff7ed;
}

.registration-payment-result.waiting {
    border-color: #d8e6ff;
    background: #f6f9ff;
}

.registration-payment-result.waiting
.registration-payment-result-icon {
    color: #3f87f5;
    background: #e4efff;
}

.registration-payment-result.rejected {
    border-color: #f4d5d9;
    background: #fff8f8;
}

.registration-payment-result.rejected
.registration-payment-result-icon {
    color: #d94d5c;
    background: #ffe8eb;
}

.registration-payment-result .btn {
    margin-top: 18px;
}

.registration-payment-submission {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #dfe8f7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
}

.registration-payment-submission span {
    color: #778399;
    font-size: 12px;
}

.registration-payment-submission strong {
    color: #29364d;
}

.registration-payment-rejected {
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #f1cdd2;
    border-radius: 14px;
    color: #9e3441;
    background: #fff4f5;
}

.registration-payment-rejected strong {
    display: block;
    margin-bottom: 5px;
}

.registration-payment-rejected p {
    margin: 0;
    line-height: 1.6;
}

.registration-payment-form-card .form-control {
    min-height: 46px;
    border-color: #dce3ee;
    border-radius: 10px;
}

.registration-payment-form-card textarea.form-control {
    min-height: 96px;
}

.registration-payment-form-card label {
    color: #33415a;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .registration-payment-result {
        display: block;
        padding: 22px;
    }

    .registration-payment-result-icon {
        margin-bottom: 15px;
    }

    .registration-payment-submission {
        display: grid;
    }
}