/* Light Able - Portal Vendor. CSS terpisah, compact dan mengikuti layout autentikasi tema. */
.vendor-register-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
}
.vendor-register-auth .auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vendor-register-auth .auth-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.vendor-register-card { border: 0; margin: 0 !important; }
.vendor-register-card .card-body { padding: 22px 28px 18px; }
.vendor-register-head { text-align: center; margin-bottom: 18px; }
.vendor-register-head .brand-logo {
    display: block; width: 190px; max-width: 100%; height: auto;
    margin: 0 auto 8px;
}
.vendor-register-head .sub { color: var(--bs-secondary-color, #6c757d); font-size: 12px; }
.vendor-register-body { width: 100%; }
.vendor-register-body .msg { display: none; margin: 0 0 12px; padding: 9px 12px; font-size: 13px; }
.vendor-register-body .vendor-step-title {
    font-size: 19px; font-weight: 600; margin: 0 0 4px;
    color: var(--bs-heading-color, #1d2630);
}
.vendor-register-body .vendor-step-desc {
    color: var(--bs-secondary-color, #6c757d); font-size: 13px;
    line-height: 1.45; margin-bottom: 16px;
}
.vendor-register-body .form-label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 13px; }
.vendor-register-body .mb-3 { margin-bottom: 12px !important; }
.vendor-register-body .form-control,
.vendor-register-body .form-select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.vendor-register-body .vendor-note { font-size: 11px; line-height: 1.4; color: var(--bs-secondary-color, #6c757d); }
.vendor-register-body .vendor-note.mt-2 { margin-top: 5px !important; }
.vendor-register-body .steps { display: flex; gap: 8px; margin: 0 0 20px; }
.vendor-register-body .vendor-step {
    flex: 1; min-width: 0; position: relative; text-align: center;
    font-size: 11px; color: #7c8798; font-weight: 500;
}
.vendor-register-body .vendor-step-circle {
    width: 30px; height: 30px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 5px;
    background: #edf0f4; color: #687386; position: relative; z-index: 1;
}
.vendor-register-body .vendor-step.active { color: var(--bs-primary, #4680ff); }
.vendor-register-body .vendor-step.active .vendor-step-circle { background: var(--bs-primary, #4680ff); color: #fff; }
.vendor-register-body .vendor-step.done { color: #2ca87f; }
.vendor-register-body .vendor-step.done .vendor-step-circle { background: #2ca87f; color: #fff; }
.vendor-register-body .vendor-panel { display: none; }
.vendor-register-body .vendor-panel.active { display: block; }
.vendor-register-body .vendor-rule { font-size: 11px; color: var(--bs-secondary-color, #6c757d); margin-top: 4px; }
.vendor-register-body .vendor-rule.ok { color: #2ca87f; }
.vendor-register-body .otp { text-align: center; font-size: 22px; letter-spacing: 6px; max-width: 260px; margin: auto; }
.vendor-register-body .ss-password-field { position: relative; width: 100%; }
.vendor-register-body .ss-password-field .form-control { padding-right: 44px; }
.vendor-register-body .ss-password-eye-button {
    position: absolute; top: 0; right: 0; height: 100%; width: 42px;
    border: 0; background: transparent; color: #7c8798; display: flex;
    align-items: center; justify-content: center; border-radius: 0 6px 6px 0;
    cursor: pointer; z-index: 3;
}
.vendor-register-body .ss-password-eye-button:hover,
.vendor-register-body .ss-password-eye-button:focus { color: var(--bs-primary, #4680ff); outline: none; }
.vendor-register-body .ss-password-eye-icon { display: block; width: 18px; height: 18px; }
.vendor-register-body .vendor-success {
    width: 56px; height: 56px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 12px;
    background: #e6f7ef; color: #2ca87f; font-size: 28px;
}
.vendor-register-foot { margin-top: 14px; text-align: center; color: #a0aab7; font-size: 11px; }
/* Mobile: pertahankan ukuran tulisan, posisikan formulir lebih ke atas. */
@media (max-width: 575px) {
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    .auth-main.v1.vendor-register-auth {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        padding: 22px 8px 12px;
        align-items: flex-start;
    }

    .vendor-register-auth .auth-wrapper {
        min-height: 0;
        height: auto;
        align-items: flex-start;
    }

    .vendor-register-auth .auth-form {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .vendor-register-card {
        margin: 0 !important;
    }

    .vendor-register-card .card-body {
        padding: 14px 17px 12px;
    }

    .vendor-register-head {
        margin-bottom: 12px;
    }

    .vendor-register-head .brand-logo {
        width: 170px;
        margin-bottom: 5px;
    }

    .vendor-register-body .steps {
        gap: 8px;
        margin-bottom: 14px;
    }

    .vendor-register-body .vendor-step {
        font-size: 11px;
        line-height: 1.2;
    }

    .vendor-register-body .vendor-step-circle {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
    }

    .vendor-register-body .vendor-step-desc {
        margin-bottom: 12px;
    }

    .vendor-register-body .mb-3 {
        margin-bottom: 9px !important;
    }

    .vendor-register-body .form-control,
    .vendor-register-body .form-select {
        min-height: 38px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .vendor-register-foot {
        margin-top: 9px;
    }
}

/* Penyempurnaan UI registrasi - digabung dari perbaikan tombol dan spacing */
/* UI refinement for vendor registration */
.vendor-register-card .vendor-register-body {
    padding-top: 4px;
}
.vendor-register-card .vendor-step-title {
    margin-bottom: 6px;
}
.vendor-register-card .vendor-step-desc {
    margin-bottom: 20px;
    line-height: 1.55;
}
.vendor-register-card .vendor-panel .mb-3 {
    margin-bottom: 1rem !important;
}
.vendor-register-card .form-control,
.vendor-register-card .form-select {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 8px;
}
.vendor-register-card textarea.form-control {
    min-height: 100px;
}
.vendor-register-card .vendor-step-actions,
.vendor-register-card .vendor-panel > .d-flex.justify-content-end {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}
.vendor-register-card #next1 {
    margin-left: auto;
    min-width: 132px;
    min-height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}
.vendor-register-card .btn {
    border-radius: 8px;
    font-weight: 600;
}
.vendor-register-card .steps {
    margin-bottom: 24px;
}
.vendor-register-card .vendor-note {
    line-height: 1.5;
}
.vendor-register-card .msg {
    margin-bottom: 16px;
}
@media (max-width: 575.98px) {
    .vendor-register-card .card-body {
        padding: 20px 16px;
    }
    .vendor-register-card .vendor-step-actions {
        justify-content: flex-end !important;
    }
    .vendor-register-card #next1 {
        min-width: 128px;
    }
    .vendor-register-card .steps {
        gap: 8px;
    }
}

/* Tombol Lanjutkan: indikator hanya tampil saat request sedang diproses */
.vendor-register-card #next1 .indicator-progress {
    display: none;
    align-items: center;
}
.vendor-register-card #next1 .indicator-label {
    display: inline;
}
.vendor-register-card #next1.is-loading .indicator-label {
    display: none;
}
.vendor-register-card #next1.is-loading .indicator-progress {
    display: inline-flex;
}
.vendor-register-card #next1:disabled {
    cursor: wait;
    opacity: .8;
}


/* Spacing fix: step verifikasi OTP */
.vendor-register-card [data-panel="2"] .vendor-step-title {
    margin-top: 4px;
    margin-bottom: 8px;
}
.vendor-register-card [data-panel="2"] .vendor-step-desc {
    margin-bottom: 22px;
}
.vendor-register-card [data-panel="2"] .text-center.mb-6 {
    margin-top: 4px;
    margin-bottom: 22px !important;
}
.vendor-register-card [data-panel="2"] .vendor-note.mb-3 {
    margin-bottom: 18px !important;
}
.vendor-register-card [data-panel="2"] label[for="otp"] {
    margin-top: 4px;
    margin-bottom: 10px;
}
.vendor-register-card [data-panel="2"] .otp {
    margin-top: 2px;
    margin-bottom: 8px;
}
.vendor-register-card [data-panel="2"] .vendor-note.mt-3 {
    margin-top: 10px !important;
}
.vendor-register-card [data-panel="2"] .d-flex.justify-content-between {
    margin-top: 18px !important;
}
.vendor-register-card [data-panel="2"] .note {
    margin-top: 14px !important;
}
@media (max-width: 575.98px) {
    .vendor-register-card [data-panel="2"] .vendor-step-desc {
        margin-bottom: 18px;
    }
    .vendor-register-card [data-panel="2"] .text-center.mb-6 {
        margin-bottom: 18px !important;
    }
    .vendor-register-card [data-panel="2"] .d-flex.justify-content-between {
        gap: 10px !important;
    }
}


/* Perapian panel verifikasi email */
.vendor-register-card [data-panel="2"] .text-center.mb-6 {
    text-align: center;
}
.vendor-register-card [data-panel="2"] label[for="otp"] {
    text-align: center;
}
.vendor-register-card [data-panel="2"] .otp {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}
.vendor-register-card [data-panel="2"] .d-flex.justify-content-between {
    justify-content: center !important;
    gap: 10px !important;
}
.vendor-register-card [data-panel="2"] .d-flex.justify-content-between .btn {
    min-height: 40px;
}
.vendor-register-card [data-panel="2"] .note {
    line-height: 1.6;
}


/* Final alignment fix: center Lanjutkan and the login prompt */
.vendor-register-card .vendor-step-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

.vendor-register-card .vendor-step-actions #next1 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vendor-register-card [data-panel="1"] > .text-center.mt-3 {
    display: block !important;
    width: 100% !important;
    margin: 12px auto 0 !important;
    text-align: center !important;
}


/* Center OTP action buttons; override the original space-between layout */
.vendor-register-card [data-panel="2"] .vendor-otp-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}
.vendor-register-card [data-panel="2"] .vendor-otp-actions > .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto;
}
.vendor-register-card [data-panel="2"] .note {
    width: 100%;
    text-align: center !important;
}


/* Center action buttons in password creation step */
.vendor-register-card [data-panel="3"] .vendor-password-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
}
.vendor-register-card [data-panel="3"] .vendor-password-actions > .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto;
}
