/* ============================================
   Jumia-Style Authentication Pages
   Paginated login — matches Jumia's exact layout
   ============================================ */

/* Wrapper — white centered page */
.jumia-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 40px 16px;
}

/* Card — no visible card, just centered content */
.jumia-auth-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

/* ============ Star Icon ============ */
.jumia-star-icon {
    margin-bottom: 16px;
}

.jumia-star-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #094bd9;
    border-radius: 50%;
}

.jumia-star-bg svg {
    width: 28px;
    height: 28px;
}

.jumia-star-icon svg {
    width: 48px;
    height: 48px;
}

/* ============ Heading ============ */
.jumia-auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.jumia-auth-heading h3 {
    font-size: 20px;
    font-weight: 700;
    color: #282828;
    margin: 0 0 6px;
}

.jumia-auth-heading p {
    font-size: 13px;
    color: #75757a;
    margin: 0;
    line-height: 1.4;
}

/* ============ Form ============ */
.jumia-auth-form {
    width: 100%;
    text-align: left;
}

.jumia-form-group {
    margin-bottom: 16px;
}

.jumia-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #282828;
    margin-bottom: 6px;
}

/* Input */
.jumia-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.jumia-input-wrap:focus-within {
    border-color: #094bd9;
}
/* Input icon */
.jumia-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
    flex-shrink: 0;
    min-width: 30px;
}

.jumia-input-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    stroke: #999;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.jumia-input-wrap:focus-within .jumia-input-icon svg {
    stroke: #1059e0;
}
.jumia-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 14px;
    color: #282828;
    background: transparent;
    width: 100%;
}

.jumia-input-wrap input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Password toggle */
.jumia-pwd-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jumia-pwd-toggle:hover svg {
    stroke: #094bd9;
}

/* Password step — hidden by default, paginated */
.jumia-step-password {
    display: none;
    margin-bottom: 8px;
}

.jumia-step-password.active {
    display: block;
}

/* Forgot password row */
.jumia-forgot-row {
    text-align: right;
    margin-top: 8px;
}

.jumia-forgot-link {
    font-size: 13px;
    color: #094bd9;
    text-decoration: none;
    font-weight: 500;
}

.jumia-forgot-link:hover {
    text-decoration: underline;
}

/* Field errors */
.jumia-field-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    text-align: left;
}

/* ============ Continue / Submit Button ============ */
.jumia-btn-continue {
    width: 100%;
    padding: 14px;
    background: #094bd9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
    display: block;
}

.jumia-btn-continue:hover {
    background: #e07a10;
}

.jumia-btn-submit {
    display: none;
}

/* ============ OR Divider ============ */
.jumia-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
    gap: 12px;
}

.jumia-divider::before,
.jumia-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.jumia-divider span {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* ============ Social Login ============ */
.jumia-social-login .login-options {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.jumia-social-login .login-options-title {
    display: none;
}

/* Icon-only mode: circular side-by-side */
.jumia-social-login .social-icons,
.jumia-social-login .social-login-lg {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.jumia-social-login .social-icons li a,
.jumia-social-login .social-login-lg li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    text-decoration: none;
    transition: transform 0.2s;
    padding: 0;
    background: transparent;
}

.jumia-social-login .social-icons li a:hover,
.jumia-social-login .social-login-lg li a:hover {
    transform: scale(1.1);
}

.jumia-social-login .social-icons li a img,
.jumia-social-login .social-login-lg li a img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Basic mode (text + icon): full width buttons */
.jumia-social-login .social-login-basic {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.jumia-social-login .social-login-basic li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 13px;
    color: #282828;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.2s;
}

.jumia-social-login .social-login-basic li a:hover {
    border-color: #094bd9;
}

.jumia-social-login .social-login-basic li a img {
    width: 20px;
    height: 20px;
}

/* ============ Terms Text ============ */
.jumia-terms {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 24px;
    line-height: 1.5;
}

.jumia-terms a {
    color: #094bd9;
    text-decoration: underline;
}

/* ============ Help Text ============ */
.jumia-help-text {
    font-size: 12px;
    color: #75757a;
    text-align: center;
    margin-top: 20px;
}

.jumia-help-text a {
    color: #094bd9;
    text-decoration: none;
}

.jumia-help-text a:hover {
    text-decoration: underline;
}

/* ============ Bottom Logo ============ */
.jumia-bottom-logo {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
}

.jumia-bottom-logo a {
    text-decoration: none;
    display: inline-block;
}

.jumia-bottom-logo img {
    max-height: 28px;
    width: auto;
    opacity: 0.7;
}

.jumia-brand-text {
    font-size: 18px;
    font-weight: 800;
    color: #282828;
    letter-spacing: 0.5px;
}

/* ============ Alert overrides ============ */
.jumia-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: left;
    line-height: 1.5;
}

.jumia-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.jumia-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.jumia-alert-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

.jumia-alert-warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.jumia-auth-card .alert {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: left;
}

/* ============ Register / Login links ============ */
.jumia-register-link,
.jumia-login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    color: #555;
}

.jumia-register-link a,
.jumia-login-link a {
    color: #094bd9;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.jumia-register-link a:hover,
.jumia-login-link a:hover {
    text-decoration: underline;
}

/* Footer (only used on register/password pages) */
.jumia-auth-footer {
    margin-top: 20px;
    text-align: center;
}

.jumia-auth-footer a {
    font-size: 13px;
    color: #75757a;
    text-decoration: none;
}

.jumia-auth-footer a:hover {
    color: #094bd9;
}

/* ============ Registration page ============ */

/* Step indicator dots */
.jumia-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.jumia-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease;
}

.jumia-step-dot.active {
    background: #094bd9;
}

/* Register steps */
.jumia-reg-step {
    /* No animation — keeps inputs fully interactive */
}

/* Back button */
.jumia-btn-back {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #75757a;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.jumia-btn-back:hover {
    border-color: #094bd9;
    color: #094bd9;
}

.jumia-btn-register {
    width: 100%;
    padding: 14px;
    background: #094bd9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.jumia-btn-register:hover {
    background: #e07a10;
}

/* Checkbox */
.jumia-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

.jumia-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #094bd9;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============ Responsive ============ */
@media (max-width: 480px) {
    .jumia-auth-wrapper {
        padding: 24px 20px;
    }

    .jumia-auth-card {
        max-width: 100%;
    }

    .jumia-auth-heading h3 {
        font-size: 18px;
    }

    .jumia-btn-continue,
    .jumia-btn-register {
        padding: 13px;
        font-size: 15px;
    }
}

/* Hide breadcrumb on auth pages */
body:has(.jumia-auth-wrapper) .breadcrumb__area,
body:has(.jumia-auth-wrapper) .breadcrumb-area {
    display: none !important;
}

/* ============================================
   VENDOR REGISTRATION CTA
   Shown on customer register page below login link
   ============================================ */
.jumia-vendor-cta {
    margin-top: 20px;
    border-radius: 12px;
    border: 1.5px solid #e8eefd;
    background: linear-gradient(135deg, #f5f8ff 0%, #eef3ff 100%);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jumia-vendor-cta-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jumia-vendor-cta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #094bd9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.jumia-vendor-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.jumia-vendor-cta-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.jumia-vendor-cta-text span {
    font-size: 12px;
    color: #555;
    line-height: 1.45;
}

/* Seller type badges */
.jumia-vendor-cta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jumia-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1;
}

.jumia-seller-badge--business {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.jumia-seller-badge--individual {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Start Selling button */
.jumia-vendor-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #094bd9;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 8px;
    padding: 11px 20px;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    box-shadow: 0 3px 10px rgba(9, 75, 217, .25);
    letter-spacing: 0.1px;
}

.jumia-vendor-cta-btn svg {
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.jumia-vendor-cta-btn:hover {
    background: #0740b8 !important;
    box-shadow: 0 5px 16px rgba(9, 75, 217, .35);
    transform: translateY(-1px);
    color: #fff !important;
}

.jumia-vendor-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(9, 75, 217, .2);
}

/* ============================================
   Vendor Registration — Step-specific styles
   ============================================ */

/* ── Seller type cards (Step 1) ── */
.vr-type-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.vr-type-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, background .2s;
    text-align: center;
    min-height: 100px;
}

.vr-type-inner svg {
    stroke: #94a3b8;
    transition: stroke .2s;
}

.vr-type-inner.selected,
.vr-type-inner:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.vr-type-inner.selected svg,
.vr-type-inner:hover svg {
    stroke: #f97316;
}

.vr-type-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.vr-type-sub {
    display: block;
    font-size: 11px;
    color: #75757a;
    line-height: 1.3;
}

/* ── Government ID type cards (Step 4) ── */
.vr-doc-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.vr-doc-type-card {
    display: block;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.vr-doc-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, background .2s;
    text-align: center;
}

.vr-doc-inner svg {
    stroke: #94a3b8;
    transition: stroke .2s;
}

.vr-doc-inner.selected,
.vr-doc-inner:hover {
    border-color: #f97316;
    background: #fff7ed;
}

.vr-doc-inner.selected svg,
.vr-doc-inner:hover svg {
    stroke: #f97316;
}

.vr-doc-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ── Section label (avoids .jumia-form-group label override) ── */
.vr-section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-align: left;
}

/* ── File upload button (Step 4) ── */
.vr-file-wrap {
    position: relative;
    margin-top: 6px;
}

.vr-file-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.vr-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    transition: border-color .2s, background .2s, color .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-file-label svg {
    flex-shrink: 0;
    stroke: #94a3b8;
    transition: stroke .2s;
}

.vr-file-label:hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #f97316;
}

.vr-file-label:hover svg {
    stroke: #f97316;
}

.vr-file-label.has-file {
    border-color: #22c55e;
    border-style: solid;
    background: #f0fdf4;
    color: #15803d;
}

.vr-file-label.has-file svg {
    stroke: #22c55e;
}

.vr-file-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    text-align: left;
}

/* ── Vendor register step buttons ── */
.jumia-btn-back {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    text-align: center;
}

.jumia-btn-back:hover {
    border-color: #94a3b8;
    color: #1a1a2e;
}

/* ── Step dots for vendor register (5 steps) ── */
.jumia-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.jumia-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background .25s, transform .25s;
    display: inline-block;
}

.jumia-step-dot.active {
    background: #f97316;
    transform: scale(1.25);
}
