* {
    box-sizing: border-box;
}

body.registration-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--page);
    font-family: "Siyam Rupali", "Noto Sans Bengali", "Hind Siliguri", Calibri, Arial, sans-serif;
    line-height: 1.45;
}

body.registration-page button,
body.registration-page input,
body.registration-page textarea {
    font: inherit;
}

body.registration-page [hidden] {
    display: none !important;
}

.registration-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    min-height: 62px;
    padding: 8px 70px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand));
    color: #fff;
    box-shadow: 0 10px 22px rgba(6, 77, 36, 0.14);
}

.registration-brand,
.registration-nav,
.registration-header-actions {
    display: flex;
    align-items: center;
}

.registration-brand {
    gap: 10px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.registration-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.registration-nav {
    justify-content: center;
    gap: 22px;
}

.registration-nav a,
.registration-header-actions a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.registration-header-actions {
    gap: 10px;
}

.registration-header-actions a {
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.registration-header-actions .solid {
    background: #07552a;
    border-color: #07552a;
    color: #fff;
}

.registration-menu-btn {
    display: none;
}

.registration-mobile-nav {
    display: none;
}

.registration-page-main {
    min-height: auto;
    padding: 0 0 46px;
    background: linear-gradient(180deg, #fff 0 38%, var(--page) 38% 100%);
}

.registration-choice {
    width: min(1180px, calc(100% - 72px));
    min-height: calc(100vh - 62px);
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(460px, 520px);
    align-items: center;
    gap: clamp(42px, 6vw, 84px);
}

.registration-choice-visual {
    display: grid;
    place-items: center;
}

.registration-device {
    position: relative;
    width: min(390px, 92%);
    aspect-ratio: 0.78;
    border: 8px solid #183c2a;
    border-radius: 34px;
    background: #f8fff9;
    box-shadow: 0 18px 45px rgba(5, 88, 42, 0.13);
    transform: rotate(-3deg);
}

.registration-device::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 9px;
    width: 100px;
    height: 18px;
    border-radius: 999px;
    background: #183c2a;
    transform: translateX(-50%);
}

.registration-device-screen {
    position: absolute;
    inset: 46px 24px 30px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #f1fff4, #fff);
    text-align: center;
}

.registration-device-screen img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.registration-device-screen strong {
    color: var(--brand-dark);
    font-size: 26px;
    line-height: 1.25;
}

.registration-device-screen span {
    color: var(--muted);
    font-size: 15px;
}

.registration-lock {
    position: absolute;
    right: -18px;
    bottom: 42px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(8, 124, 59, 0.24);
}

.registration-lock svg,
.choice-icon svg,
.registration-back-button svg,
.choice-back-home svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.registration-lock svg {
    width: 36px;
    height: 36px;
}

.registration-choice-inner {
    padding: 14px 18px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(5, 88, 42, 0.13);
}

.registration-panel-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 2px;
    display: block;
    object-fit: contain;
}

.registration-choice-inner h1 {
    margin: 0 0 3px;
    color: var(--brand-dark);
    text-align: center;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.25;
}

.registration-choice-inner p {
    margin: 0 0 6px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
}

.registration-choice-grid {
    display: grid;
    gap: 10px;
}

.registration-primary-choice,
.registration-choice-grid button {
    width: 100%;
    min-height: 46px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(8, 124, 59, 0.22);
}

.choice-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
}

.choice-icon svg {
    width: 20px;
    height: 20px;
}

.registration-primary-choice > span:last-child {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.registration-choice-links {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.registration-choice-links a,
.registration-choice-links button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    cursor: pointer;
}

.registration-role-link.active {
    display: none;
}

.registration-choice-links button {
    color: #0a8b45;
    text-align: right;
}

.choice-back-home {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-dark);
    text-decoration: none;
}

.choice-back-home svg {
    width: 17px;
    height: 17px;
}

.registration-section {
    width: min(1120px, calc(100% - 36px));
    margin: 26px auto 0;
}

.registration-shell {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.registration-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.registration-head h2 {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1.3;
}

.registration-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.registration-back-button {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f5fff7;
    color: var(--brand-dark);
    cursor: pointer;
}

.registration-back-button svg {
    width: 17px;
    height: 17px;
}

.registration-panel {
    display: none;
}

.registration-panel.active {
    display: block;
}

.registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 9px;
}

.registration-grid label,
.registration-category-field {
    display: grid;
    gap: 3px;
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1.35;
}

.wide-field {
    grid-column: 1 / -1;
}

.registration-grid input,
.registration-grid textarea,
.category-select-btn {
    width: 100%;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfffc;
    color: var(--ink);
    line-height: 1.35;
}

.registration-grid textarea {
    min-height: 50px;
    resize: vertical;
}

.vendor-location-field textarea {
    min-height: 32px;
    height: 32px;
    resize: vertical;
}

.registration-address-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(118px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.registration-address-field {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.registration-address-field textarea,
.registration-address-field input {
    height: 100%;
}

.registration-category-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(118px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.registration-category-upload-row .registration-category-field,
.registration-category-upload-row .profile-upload-field {
    min-height: 58px;
}

.registration-category-upload-row .category-select-btn,
.registration-category-upload-row .profile-upload-box {
    min-height: 32px;
    height: 32px;
}

.category-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}

.category-select-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.category-check-list {
    display: none;
    max-height: 188px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

.category-check-list.open {
    display: grid;
    gap: 4px;
}

.category-check-list label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 6px;
    border-radius: 7px;
    background: #f7fff9;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
}

.category-check-list input {
    width: 13px;
    height: 13px;
    min-height: 13px;
    margin-top: 2px;
    padding: 0;
    border-radius: 3px;
    flex: 0 0 auto;
}

.registration-media {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.profile-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.profile-upload-field {
    min-width: 0;
    display: grid;
    gap: 3px;
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1.35;
}

.profile-upload-box {
    min-height: 100%;
    padding: 8px 8px;
    border: 1px dashed #bde4c7;
    border-radius: 10px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    background: #f5fff7;
    color: var(--brand-dark);
    text-align: center;
    cursor: pointer;
}

.vendor-profile-upload .profile-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
}

.vendor-profile-upload .profile-upload-box strong {
    text-align: left;
}

.profile-upload-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e8f8ed;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.profile-upload-box strong {
    color: var(--brand-dark);
    font-size: 12px;
    line-height: 1.25;
}

.upload-box {
    min-height: 44px;
    padding: 7px 9px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fff9;
}

.upload-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.upload-box strong {
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1.35;
}

.upload-trigger {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.upload-trigger input {
    display: none;
}

.crop-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.crop-preview canvas {
    width: 180px;
    height: 180px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.crop-controls {
    display: grid;
    gap: 10px;
}

.crop-controls label {
    display: grid;
    gap: 5px;
    color: var(--brand-dark);
}

.registration-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.registration-action-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}

.registration-actions .registration-role-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0a8b45;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

#registrationStatus {
    margin: 0;
    min-height: 16px;
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1.35;
}

#registrationStatus.error {
    color: #b42318;
}

.registration-actions button {
    min-height: 34px;
    padding: 7px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.registration-actions .registration-role-link {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0a8b45;
    box-shadow: none;
}

.registration-actions button:disabled {
    opacity: 0.62;
    cursor: wait;
}

.registration-footer {
    width: min(1120px, calc(100% - 120px));
    margin: 0 auto 36px;
    padding: 36px 30px 28px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr;
    gap: 56px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 34px rgba(8, 124, 59, 0.18);
}

.registration-footer section {
    min-width: 0;
}

.registration-footer img {
    width: 132px;
    height: 58px;
    margin-bottom: 14px;
    object-fit: contain;
}

.registration-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 22px;
    line-height: 1.35;
}

.registration-footer p,
.registration-footer a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    line-height: 1.75;
}

.registration-footer a {
    display: block;
    margin: 4px 0;
    text-decoration: none;
}

.registration-footer-copy {
    grid-column: 1 / -1;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

@media (max-width: 900px) {
    .registration-site-header {
        min-height: 62px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 7px 14px;
    }

    .registration-brand span {
        font-size: 17px;
    }

    .registration-nav {
        display: none;
    }

    .registration-header-actions {
        gap: 8px;
    }

    .registration-header-actions .ghost {
        display: none;
    }

    .registration-header-actions a {
        min-height: 34px;
        padding: 6px 14px;
        font-size: 14px;
    }

    .registration-page-main {
        padding: 20px 0 26px;
        background: var(--page);
    }

    .registration-choice {
        width: min(360px, calc(100% - 28px));
        min-height: auto;
        display: block;
    }

    .registration-choice-visual {
        display: none;
    }

    .registration-choice-inner {
        padding: 17px 16px 15px;
    }

    .registration-panel-logo {
        width: 68px;
        height: 68px;
    }

    .registration-choice-inner h1 {
        font-size: 23px;
    }

    .registration-choice-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .registration-choice-links button {
        text-align: left;
    }

    .registration-section {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .registration-shell {
        padding: 16px;
    }

    .registration-head {
        display: grid;
    }

    .registration-head h2 {
        font-size: 26px;
    }

    .registration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .registration-address-upload-row {
        grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
        gap: 7px;
    }

    .registration-category-upload-row {
        grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
        gap: 7px;
    }

    .profile-upload-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .crop-card {
        grid-template-columns: 1fr;
    }

    .crop-preview canvas {
        width: 100%;
        height: auto;
    }

    .registration-actions {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .registration-action-left {
        gap: 6px;
    }

    .registration-actions .registration-role-link {
        max-width: 178px;
        font-size: 12px;
    }

    .registration-submit-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .registration-footer {
        width: calc(100% - 28px);
        margin-top: 38px;
        padding: 24px 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .registration-footer-copy {
        margin-top: 8px;
    }
}

@media (max-width: 900px) {
    body.registration-page {
        overflow-x: hidden;
        padding-bottom: 68px;
    }

    .registration-site-header {
        min-height: 58px;
        padding: 6px 12px;
    }

    .registration-brand {
        gap: 8px;
    }

    .registration-brand img {
        width: 44px;
        height: 44px;
    }

    .registration-brand span {
        font-size: 16px;
    }

    .registration-header-actions a {
        min-height: 32px;
        padding: 5px 12px;
        font-size: 13px;
    }

    .registration-header-actions {
        display: none;
    }

    .registration-menu-btn {
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 0;
        border-radius: 14px;
        display: grid;
        align-content: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        cursor: pointer;
    }

    .registration-menu-btn span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.22s ease, opacity 0.18s ease;
    }

    .registration-menu-btn.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .registration-menu-btn.is-open span:nth-child(2) {
        opacity: 0;
    }

    .registration-menu-btn.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .registration-page-main {
        padding: 14px 0 22px;
    }

    .registration-choice {
        width: min(360px, calc(100% - 24px));
    }

    .registration-choice-inner {
        padding: 14px 12px 13px;
        border-radius: 13px;
    }

    .registration-panel-logo {
        width: 58px;
        height: 58px;
        margin-bottom: 1px;
    }

    .registration-choice-inner h1 {
        margin-bottom: 2px;
        font-size: clamp(22px, 6.4vw, 27px);
        line-height: 1.28;
    }

    .registration-choice-inner p {
        margin-bottom: 7px;
        font-size: 12px;
        line-height: 1.45;
    }

    .registration-grid {
        gap: 6px;
    }

    .registration-grid label,
    .registration-category-field {
        min-width: 0;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .registration-grid input,
    .registration-grid textarea,
    .category-select-btn {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.4;
    }

    .vendor-location-field textarea {
        min-height: 34px;
        height: 34px;
    }

    .registration-address-upload-row,
    .registration-category-upload-row {
        gap: 6px;
    }

    .registration-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        align-items: stretch;
        margin-top: 8px;
    }

    .registration-action-left {
        order: 2;
        display: grid;
        gap: 4px;
    }

    .registration-submit-button {
        order: 1;
        width: 100%;
        min-height: 38px;
        font-size: 14px;
    }

    .registration-actions .registration-role-link {
        width: 100%;
        max-width: none;
        text-align: center;
        font-size: 12px;
        line-height: 1.45;
        white-space: normal;
    }

    .registration-footer {
        margin-top: 22px;
        padding: 20px 16px;
        gap: 14px;
        border-radius: 10px;
    }

    .registration-footer img {
        width: 112px;
        height: 48px;
        margin-bottom: 8px;
    }

    .registration-footer h2 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .registration-footer p,
    .registration-footer a {
        font-size: 14px;
        line-height: 1.6;
    }

    .public-mobile-menu {
        position: fixed;
        inset: 58px 0 0;
        z-index: 45;
        display: block;
        background: rgba(3, 36, 18, 0.36);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    .public-mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .public-mobile-menu-panel {
        width: min(310px, 84vw);
        height: 100%;
        padding: 20px 18px 22px;
        display: grid;
        align-content: start;
        gap: 18px;
        background: #087c3b;
        color: #fff;
        box-shadow: 18px 0 34px rgba(5, 88, 42, 0.22);
        transform: translateX(-105%);
        transition: transform 0.26s ease;
    }

    .public-mobile-menu.is-open .public-mobile-menu-panel {
        transform: translateX(0);
    }

    .public-mobile-menu-links {
        display: grid;
        gap: 8px;
    }

    .public-mobile-menu-links a {
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        color: #fff;
        text-decoration: none;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.45;
    }

    .public-mobile-menu-links a:hover,
    .public-mobile-menu-links a:focus-visible {
        background: rgba(255, 255, 255, 0.12);
    }

    .public-mobile-menu-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .public-mobile-menu-actions a {
        min-height: 38px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: #07552a;
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
    }

    body.public-menu-open {
        overflow: hidden;
    }

    .registration-mobile-nav {
        position: fixed;
        z-index: 50;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 64px;
        border-top: 1px solid var(--line);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -10px 26px rgba(18, 42, 27, 0.08);
    }

    .registration-mobile-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        color: #25362b;
        text-decoration: none;
        font-size: 13px;
        line-height: 1.25;
    }

    .registration-mobile-nav a.active {
        color: var(--brand);
        font-weight: 800;
    }

    .registration-mobile-nav svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

@media (max-width: 360px) {
    .registration-grid {
        grid-template-columns: 1fr;
    }

    .registration-address-upload-row,
    .registration-category-upload-row {
        grid-template-columns: 1fr;
    }
}

.registration-otp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.registration-otp-modal[hidden] {
    display: none;
}

.registration-otp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 42, 21, 0.42);
    backdrop-filter: blur(8px);
}

.registration-otp-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    border: 1px solid rgba(11, 122, 53, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(5, 58, 27, 0.22);
    padding: 20px;
    color: var(--ink);
}

.registration-otp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eaf8ee;
    color: var(--brand);
    font-size: 20px;
    cursor: pointer;
}

.registration-otp-card small {
    display: block;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.registration-otp-card h2 {
    margin: 2px 0 7px;
    color: var(--brand-dark);
    font-size: 26px;
    line-height: 1.15;
}

.registration-otp-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.registration-otp-card label {
    display: grid;
    gap: 6px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.registration-otp-card input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfffc;
    color: var(--ink);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: center;
    outline: 0;
}

.registration-otp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.registration-otp-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #eaf8ee;
    color: var(--brand);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.registration-otp-actions button:last-child {
    background: var(--brand);
    color: #fff;
}

.registration-otp-actions button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.registration-otp-status {
    min-height: 19px;
    margin-top: 10px !important;
    font-size: 12px !important;
    font-weight: 800;
}

.registration-otp-status.error {
    color: #b42318;
}

@media (max-width: 900px) {
    body.registration-page {
        --auth-mobile-header-height: 86px;
    }

    body.registration-page.auth-header-scrolled {
        --auth-mobile-header-height: 86px;
    }

    .registration-site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999999;
        width: 100%;
        height: var(--auth-mobile-header-height);
        min-height: var(--auth-mobile-header-height);
        margin: 0;
        padding: 8px 24px 8px 22px;
        border-radius: 0;
        background: var(--brand);
        box-shadow: 0 8px 18px rgba(7, 83, 35, 0.18);
        isolation: isolate;
        transition: top 0.28s ease, left 0.28s ease, right 0.28s ease, width 0.28s ease, height 0.28s ease, min-height 0.28s ease, padding 0.28s ease, border-radius 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    }

    .registration-site-header.scrolled {
        top: 8px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        height: 70px;
        min-height: 70px;
        padding: 0 12px 0 10px;
        border-radius: 9px;
        background: var(--brand);
        box-shadow: 0 10px 24px rgba(7, 83, 35, 0.2);
    }

    .registration-site-header::before {
        display: none;
    }

    .registration-site-header.scrolled::before {
        display: none;
    }

    .registration-brand,
    .registration-menu-btn {
        position: relative;
        z-index: 1;
    }

    .registration-brand img {
        width: 210px;
        height: 54px;
        transition: width 0.28s ease, height 0.28s ease;
    }

    .registration-site-header.scrolled .registration-brand img {
        width: 210px;
        height: 54px;
    }

    .registration-brand span {
        display: none;
    }

    .registration-menu-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 34px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .registration-menu-btn span {
        display: block;
        width: 28px;
        height: 2px;
        margin: 0;
        border-radius: 999px;
        background: #fff;
    }

    .registration-page-main {
        margin-top: 86px;
    }

    .public-mobile-menu {
        inset: var(--auth-mobile-header-height) 0 0;
        transition: opacity 0.22s ease, inset 0.28s ease;
    }
}

/* The Android app owns navigation when it injects rd-native-app. */
@media (max-width: 900px) {
    html.rd-native-app body.registration-page,
    body.registration-page.rd-native-app {
        padding-bottom: 0 !important;
    }

    html.rd-native-app .registration-mobile-nav,
    body.rd-native-app .registration-mobile-nav {
        display: none !important;
    }
}
