:root {
    --tw-primary: #0b2f91;
    --tw-primary-2: #1747d1;
    --tw-ink: #101936;
    --tw-muted: #667085;
    --tw-line: #e4e9f3;
    --tw-soft: #f5f8ff;
    --tw-white: #ffffff;
    --tw-success: #168b59;
    --tw-radius-lg: 24px;
    --tw-radius-md: 16px;
    --tw-shadow: 0 22px 60px rgba(19, 45, 104, .12);
}

/* Shared auth surfaces */
.tw-auth-page {
    position: relative;
    max-width: 1180px;
}

.tw-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 88, 224, .10), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(12, 47, 145, .08), transparent 30%),
        #f8faff;
}

.tw-auth-split {
    align-items: stretch;
    min-height: 620px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 1px solid var(--tw-line);
    border-radius: 28px;
    overflow: hidden;
    background: var(--tw-white);
    box-shadow: var(--tw-shadow);
}

.tw-auth-split > .row,
.tw-auth-split > [class*="col-"] {
    margin: 0;
}

.tw-auth-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    padding: 42px 40px 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(155deg, rgba(8, 38, 125, .98), rgba(31, 74, 210, .92)),
        var(--tw-primary);
}

.tw-auth-visual::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.tw-auth-visual img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    object-position: bottom center;
    margin-top: auto;
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.18));
}

.tw-auth-welcome {
    position: relative;
    z-index: 3;
    color: #fff;
}

.tw-auth-eyebrow,
.tw-support-kicker,
.tw-card-heading > span,
.tw-support-section-head > div > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #2d5df5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tw-auth-welcome .tw-auth-eyebrow {
    color: #c9d7ff;
}

.tw-auth-welcome h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.08;
    font-weight: 800;
}

.tw-auth-welcome p {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.7;
    max-width: 420px;
}

.tw-auth-benefits {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.tw-auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.94);
    font-size: 14px;
    font-weight: 600;
}

.tw-auth-benefits i {
    color: #9ef2cc;
}

.tw-auth-split > .col-md-7,
.tw-auth-split > .row.col-md-7,
.tw-auth-register > .row {
    padding: 0 !important;
}

.tw-auth-card,
.tw-auth-split .loginContainer {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    height: 100%;
}

.tw-auth-split .loginContainer .card-body {
    padding: 48px 48px 34px;
}

.tw-auth-split .loginContainer .card-footer {
    padding: 22px 48px 34px;
    border-top: 1px solid var(--tw-line);
    background: #fff;
}

.tw-auth-page h2,
.tw-auth-page h3,
.tw-auth-page h4,
.tw-auth-page h5,
.tw-auth-page h6 {
    color: var(--tw-ink);
}

.tw-auth-page .primaryColor,
.tw-auth-page .text-primary {
    color: var(--tw-primary-2) !important;
}

.tw-auth-page .form-group {
    margin-bottom: 18px;
}

.tw-auth-page label {
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.tw-auth-page .form-control,
.tw-contact-page .form-control {
    min-height: 50px;
    border: 1px solid #d9e0ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: var(--tw-ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tw-contact-page textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.tw-auth-page .form-control:focus,
.tw-contact-page .form-control:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, .11);
}

.tw-auth-page .btn,
.tw-contact-page .btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 700;
}

.tw-auth-page .btn--primary,
.tw-contact-page .btn--primary {
    border-color: var(--tw-primary-2) !important;
    background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-2)) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(23, 71, 209, .18);
}

.tw-auth-page .btn-outline-primary {
    border-color: #3157d6;
    color: #173ca8;
    background: #fff;
}

.tw-auth-page .btn-outline-primary:hover {
    color: #fff;
    background: var(--tw-primary-2);
}

.tw-auth-page .signBtn {
    width: 100%;
    margin-top: 4px;
}

.tw-auth-page .loginSectionDiv {
    display: flex;
    gap: 8px;
    padding: 5px;
    border-radius: 12px;
    background: #f1f4fb;
}

.tw-auth-page .loginTabBtn {
    flex: 1;
    border: 0;
    border-radius: 9px;
    padding: 11px 14px;
    background: transparent;
    color: #667085;
    font-weight: 700;
}

.tw-auth-page .loginTabBtn.active {
    background: #fff;
    color: var(--tw-primary);
    box-shadow: 0 6px 16px rgba(21, 44, 100, .10);
}

.tw-auth-register .tw-auth-visual {
    min-height: 850px;
}

.tw-auth-register .loginContainer .card-body {
    padding-top: 38px;
}

.tw-auth-compact {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tw-auth-compact > .row {
    width: 100%;
}

.tw-auth-compact .tw-auth-card,
.tw-auth-compact .card {
    overflow: hidden;
    border: 1px solid var(--tw-line) !important;
    border-radius: var(--tw-radius-lg) !important;
    background: #fff;
    box-shadow: var(--tw-shadow) !important;
}

.tw-auth-compact .card-body {
    padding: 34px;
}

.tw-auth-compact ol {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
}

.tw-auth-compact ol li {
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--tw-soft);
    color: #475467;
}

.tw-auth-page #partitioned {
    min-height: 60px;
    text-align: center;
    letter-spacing: 22px;
    font-size: 24px;
    font-weight: 800;
}

/* Support and contact pages */
.tw-support-page {
    background: #f8faff;
    color: var(--tw-ink);
}

.tw-support-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 25%, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(135deg, #071f68 0%, #153aa8 56%, #5432a6 100%);
    color: #fff;
}

.tw-support-hero-grid {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    align-items: center;
    gap: 40px;
    padding: 46px 0;
}

.tw-support-hero .tw-support-kicker {
    color: #cfd9ff;
}

.tw-support-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
}

.tw-support-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.7;
}

.tw-support-hero-art {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.tw-support-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,.22));
}

.tw-help-search {
    max-width: 600px;
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 19, 68, .20);
}

.tw-help-search i {
    color: var(--tw-primary-2);
    font-size: 20px;
}

.tw-help-search input {
    flex: 1;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tw-ink);
}

.tw-support-content {
    padding-top: 36px;
    padding-bottom: 64px;
}

.tw-help-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tw-help-topic {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-md);
    background: #fff;
    box-shadow: 0 10px 24px rgba(28, 48, 92, .06);
}

.tw-help-topic > i,
.tw-contact-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eef3ff;
    color: var(--tw-primary-2);
    font-size: 19px;
}

.tw-help-topic strong,
.tw-help-topic span {
    display: block;
}

.tw-help-topic strong {
    margin-bottom: 5px;
    color: var(--tw-ink);
    font-size: 15px;
}

.tw-help-topic span {
    color: var(--tw-muted);
    font-size: 12px;
    line-height: 1.5;
}

.tw-support-section-head {
    margin: 42px 0 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.tw-support-section-head h2,
.tw-card-heading h2 {
    margin: 0;
    color: var(--tw-ink);
    font-size: 28px;
    font-weight: 800;
}

.tw-faq-list {
    display: grid;
    gap: 12px;
}

.tw-faq-item {
    overflow: hidden;
    border: 1px solid var(--tw-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(19, 42, 94, .05);
}

.tw-faq-question {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border: 0;
    background: #fff;
    color: var(--tw-ink);
    text-align: inherit;
    font-weight: 700;
}

.tw-faq-question > span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tw-faq-question > span i {
    color: var(--tw-primary-2);
}

.tw-faq-arrow {
    transition: transform .2s ease;
}

.tw-faq-question[aria-expanded="true"] .tw-faq-arrow {
    transform: rotate(180deg);
}

.tw-faq-answer {
    padding: 0 20px 20px 50px;
    color: var(--tw-muted);
    line-height: 1.75;
}

.tw-empty-state {
    padding: 48px 20px;
    text-align: center;
    border: 1px dashed #cad4e8;
    border-radius: 16px;
    background: #fff;
}

.tw-contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr);
    gap: 24px;
    padding-top: 38px;
    padding-bottom: 64px;
}

.tw-contact-sidebar,
.tw-contact-form-card {
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius-lg);
    background: #fff;
    box-shadow: 0 16px 36px rgba(20, 45, 99, .08);
}

.tw-contact-sidebar {
    align-self: start;
    overflow: hidden;
}

.tw-contact-method {
    display: flex;
    gap: 14px;
    padding: 22px;
    border-bottom: 1px solid var(--tw-line);
}

.tw-contact-method small,
.tw-contact-method a,
.tw-contact-method p {
    display: block;
}

.tw-contact-method small {
    margin-bottom: 5px;
    color: var(--tw-muted);
    font-size: 12px;
}

.tw-contact-method a,
.tw-contact-method p {
    margin: 0;
    color: var(--tw-ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tw-contact-note {
    margin: 18px;
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #edf3ff, #f7f3ff);
}

.tw-contact-note > i {
    color: var(--tw-primary-2);
    font-size: 24px;
}

.tw-contact-note strong,
.tw-contact-note a {
    display: block;
}

.tw-contact-note a {
    margin-top: 5px;
    color: var(--tw-primary-2);
    font-weight: 700;
}

.tw-contact-form-card {
    padding: 30px;
}

.tw-card-heading {
    margin-bottom: 24px;
}

.tw-captcha-wrap {
    margin: 4px 0 22px;
    padding: 14px;
    border-radius: 14px;
    background: var(--tw-soft);
}

.tw-captcha-image {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid var(--tw-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.tw-submit-button {
    min-width: 180px;
}

@media (max-width: 991px) {
    .tw-auth-split {
        display: block !important;
    }

    .tw-auth-visual,
    .tw-auth-register .tw-auth-visual {
        min-height: 360px;
        padding: 32px 28px 0 !important;
    }

    .tw-auth-visual img {
        max-height: 210px;
    }

    .tw-auth-split > .loginImg,
    .tw-auth-split > .col-md-7,
    .tw-auth-split > .row.col-md-7 {
        max-width: 100%;
        width: 100%;
        flex: 0 0 100%;
    }

    .tw-help-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tw-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tw-auth-page {
        margin-top: 18px !important;
        margin-bottom: 18px !important;
    }

    .tw-auth-split {
        border-radius: 18px;
    }

    .tw-auth-visual {
        min-height: 310px;
    }

    .tw-auth-welcome h1 {
        font-size: 30px;
    }

    .tw-auth-split .loginContainer .card-body,
    .tw-auth-split .loginContainer .card-footer,
    .tw-auth-compact .card-body {
        padding: 26px 20px;
    }

    .tw-support-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 36px 0 26px;
    }

    .tw-support-hero-art {
        height: 190px;
    }

    .tw-help-topic-grid {
        grid-template-columns: 1fr;
    }

    .tw-support-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tw-contact-form-card {
        padding: 22px 18px;
    }

    .tw-faq-answer {
        padding-left: 20px;
    }
}
