:root {
    /* --vd-primary: #4f46e5; */
    --vd-primary : #6D00AD;
    --vd-primary-dark: #3730a3;
    --vd-ink: #172033;
    --vd-muted: #738096;
    --vd-border: #e5eaf2;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    overflow: hidden;
    background: #f3f6fc;
    color: var(--vd-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.register-shell {
    width: 100%;
    height: 100vh;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 8% 10%, rgba(99, 102, 241, .10), transparent 27%),
        radial-gradient(circle at 92% 88%, rgba(14, 165, 233, .10), transparent 25%),
        #f5f7fc;
}

.register-card {
    width: min(1120px, 100%);
    height: min(760px, calc(100vh - 48px));
    min-height: 0;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(31, 41, 75, .14);
}

.register-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 38px 32px;
    color: #fff;
    background: linear-gradient(145deg, #202b63 0%, #3730a3 55%, #6D00AD 100%);
}

.register-aside:before,
.register-aside:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.register-aside:before {
    width: 330px;
    height: 330px;
    right: -150px;
    top: 18%;
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 75px rgba(255, 255, 255, .025);
}

.register-aside:after {
    width: 210px;
    height: 210px;
    left: -120px;
    bottom: -80px;
    background: rgba(255, 255, 255, .055);
}

.aside-content,
.aside-bottom {
    position: relative;
    z-index: 1;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
}

.brand-logo img {
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
}

.brand-name {
    font-size: 21px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.4px;
}

.brand-caption {
    margin-top: 5px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.aside-copy {
    max-width: 380px;
    margin-top: 62px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    color: #e0e7ff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.eyebrow i {
    color: #a5f3fc;
}

.aside-copy h1 {
    margin: 22px 0 15px;
    max-width: 360px;
    color: #fff;
    font-size: clamp(29px, 3vw, 39px);
    line-height: 1.14;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.aside-copy p {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.feature-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #c7d2fe;
    background: rgba(255, 255, 255, .11);
}

.step-progress {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .48);
    z-index: 1;
    white-space: nowrap;
}

.step-item.active {
    color: #fff;
}

.step-item.completed {
    color: #a7f3d0;
}

.step-number {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
}

.step-item.active .step-number {
    background: #fff;
    border-color: #fff;
    color: var(--vd-primary);
}

.step-item.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.step-line {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
    margin: 0 12px;
}

.aside-bottom {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.register-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px clamp(28px, 4vw, 58px);
    overflow: hidden;
}

.form-heading {
    margin-bottom: 22px;
}

.form-heading .small-label {
    color: var(--vd-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 8px 0 7px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
    color: #18213a;
}

.form-heading p {
    margin: 0;
    color: var(--vd-muted);
    font-size: 13px;
    line-height: 1.6;
}

#registrationForm {
    min-width: 0;
}

.form-section {
    transition: opacity .25s ease, transform .25s ease;
}

.form-group {
    margin-bottom: 13px !important;
}

.form-label {
    margin-bottom: 6px;
    color: #364158;
    font-size: 12px;
    font-weight: 700 !important;
}

.input-group {
    flex-wrap: nowrap;
}

.input-group-text {
    min-width: 43px;
    justify-content: center;
    color: #7c86a0 !important;
    background: #f8f9fd !important;
    border-color: var(--vd-border) !important;
    border-radius: 10px 0 0 10px;
}

.form-control {
    min-width: 0;
    height: 43px;
    color: #202a43;
    background: #fff;
    border-color: var(--vd-border);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    box-shadow: none !important;
}

textarea.form-control {
    height: 57px;
    min-height: 57px;
    resize: none;
    padding-top: 10px;
}

.form-control:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .09) !important;
}

.form-control::placeholder {
    color: #a3adbf;
}

.btn {
    border-radius: 10px;
}

.btn-primary {
    background: var(--vd-primary);
    border-color: var(--vd-primary);
    box-shadow: 0 7px 15px rgba(79, 70, 229, .18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--vd-primary-dark);
    border-color: var(--vd-primary-dark);
}

.continue-btn,
#verifyOtpBtn {
    min-height: 46px;
    font-size: 13px;
}

.phone-badge {
    background: #f2f4ff;
    padding: 9px 14px;
    border: 1px solid #e0e7ff;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #334155;
    font-size: 13px;
}

/* Professional OTP verification screen */
.otp-panel {
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

.otp-icon-wrap {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 22px;
    color: var(--vd-primary);
    background: linear-gradient(145deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .09);
    font-size: 25px;
}

.otp-title {
    margin: 0 0 8px;
    color: #18213a;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.otp-description {
    max-width: 330px;
    margin: 0 auto 20px;
    color: var(--vd-muted);
    font-size: 13px;
    line-height: 1.7;
}

.otp-phone-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 9px 13px;
    margin-bottom: 4px;
    border: 1px solid #e5e9f5;
    border-radius: 12px;
    background: #fafbff;
}

.otp-phone-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eef2ff;
    color: var(--vd-primary);
}

.otp-phone-copy {
    text-align: left;
}

.otp-phone-label {
    display: block;
    color: #8992a7;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.otp-phone-number {
    color: #26324b;
    font-size: 13px;
    font-weight: 800;
}

.otp-edit-btn {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 8px;
    color: var(--vd-primary);
    background: #eef2ff;
    text-decoration: none;
}

.otp-entry-card {
    padding: 20px 20px 17px;
    margin: 19px 0 14px;
    border: 1px solid #e8ebf5;
    border-radius: 16px;
    background: #fbfcff;
}

.otp-entry-label {
    display: block;
    margin-bottom: 11px;
    color: #4b5670;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.otp-digit-input {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 58px;
    margin: 0 auto;
    padding: 8px 14px 8px 26px;
    border: 1.5px solid #dce2ef;
    border-radius: 12px;
    background: #fff;
    color: #202a43;
    letter-spacing: 13px;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 3px 8px rgba(20, 32, 60, .03);
}

.otp-digit-input:focus {
    border-color: var(--vd-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1) !important;
}

.otp-entry-hint {
    margin: 10px 0 0;
    color: #929bb0;
    font-size: 11px;
}

#otpAlert {
    border-radius: 10px;
    font-size: 12px;
    text-align: left;
}

#verifyOtpBtn {
    min-height: 48px;
    border: 0;
    background: linear-gradient(135deg, #6D00AD, #4338ca);
    box-shadow: 0 8px 18px rgba(79, 70, 229, .2);
}

#verifyOtpBtn:hover {
    background: linear-gradient(135deg, #4338ca, #3730a3);
}

#resendOtpBtn {
    min-height: 40px;
    margin-top: 4px;
    border: 1px solid #edf0f7;
    border-radius: 10px;
    background: #fff;
    color: #69748b !important;
}

#resendOtpBtn .resend-link {
    color: var(--vd-primary);
    font-weight: 800;
}

.otp-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    color: #8a94a9;
    font-size: 10px;
}

.otp-secure-note i {
    color: #10a777;
}

@media (max-width: 650px) {
    .otp-icon-wrap {
        width: 58px;
        height: 58px;
        margin-bottom: 13px;
        border-radius: 18px;
        font-size: 22px;
    }

    .otp-title {
        font-size: 23px;
    }

    .otp-entry-card {
        padding: 16px 12px 14px;
        margin-top: 16px;
    }

    .otp-digit-input {
        height: 54px;
        max-width: 290px;
        letter-spacing: 10px;
        font-size: 23px;
    }
}

.login-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf0f6;
    text-align: center;
    color: var(--vd-muted);
    font-size: 12px;
}

.login-footer a {
    color: var(--vd-primary);
    font-weight: 800;
    text-decoration: none;
}

.invalid-feedback {
    font-size: 11px;
}

@media (max-width: 900px) {
    .register-shell {
        padding: 16px;
    }

    .register-card {
        height: calc(100vh - 32px);
        grid-template-columns: .78fr 1.22fr;
    }

    .register-aside {
        padding: 30px 24px 24px;
    }

    .aside-copy {
        margin-top: 40px;
    }

    .aside-copy h1 {
        font-size: 30px;
    }

    .register-main {
        padding: 28px 28px;
    }

    .step-line {
        width: 20px;
        margin: 0 7px;
    }
}

@media (max-width: 650px) {
    body {
        overflow: auto;
    }

    .register-shell {
        height: auto;
        min-height: 100vh;
        padding: 12px;
    }

    .register-card {
        height: auto;
        min-height: calc(100vh - 24px);
        display: flex;
        flex-direction: column;
        border-radius: 18px;
    }

    .register-aside {
        padding: 20px 22px 18px;
        min-height: 0;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .brand-logo img {
        max-width: 32px;
        max-height: 32px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-caption {
        font-size: 9px;
    }

    .aside-copy {
        margin-top: 20px;
    }

    .aside-copy h1 {
        margin: 12px 0 6px;
        font-size: 23px;
    }

    .aside-copy p,
    .feature-list,
    .aside-bottom {
        display: none;
    }

    .eyebrow {
        padding: 5px 9px;
        font-size: 9px;
    }

    .step-progress {
        margin-top: 20px;
    }

    .register-main {
        padding: 25px 22px 22px;
        overflow: visible;
    }

    .form-heading {
        margin-bottom: 18px;
    }

    .form-heading h2 {
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 12px !important;
    }
}

@media (max-height: 760px) and (min-width: 651px) {
    .register-card {
        height: calc(100vh - 28px);
    }

    .register-shell {
        padding: 14px;
    }

    .register-aside {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .aside-copy {
        margin-top: 28px;
    }

    .aside-copy h1 {
        font-size: 30px;
        margin-top: 15px;
    }

    .feature-list {
        gap: 9px;
        margin-top: 20px;
    }

    .register-main {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .form-heading {
        margin-bottom: 14px;
    }

    .form-heading h2 {
        font-size: 24px;
    }

    .form-group {
        margin-bottom: 9px !important;
    }

    .form-control {
        height: 39px;
    }

    textarea.form-control {
        height: 49px;
        min-height: 49px;
    }

    .continue-btn,
    #verifyOtpBtn {
        min-height: 42px;
    }

    .login-footer {
        margin-top: 13px;
        padding-top: 12px;
    }
}