:root {
    --auth-primary: #111827;
    --auth-primary-hover: #27272a;
    --auth-bg: #f8fafc;
    --auth-bg-soft: #f9fafb;
    --auth-card: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-muted-dark: #334155;
    --auth-border: #e2e8f0;
    --auth-border-strong: rgba(15, 23, 42, 0.12);
    --auth-success: #16a34a;
    --auth-error: #dc2626;
    --auth-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    --clr-primary: #111827;
}

html,
body {
    overflow-x: hidden;
}

.auth-page {
    min-height: 100vh;
    padding: 32px 20px;
    background:
        radial-gradient(circle at 12% 16%, rgba(148, 163, 184, 0.22), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(226, 232, 240, 0.82), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, var(--auth-bg) 48%, var(--auth-bg-soft) 100%);
    color: var(--auth-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-shell {
    width: min(100%, 1220px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 42px;
    align-items: center;
}

.auth-brand-panel {
    position: relative;
    min-height: 680px;
    padding: 46px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.76)),
        linear-gradient(135deg, rgba(17, 24, 39, 0.05), rgba(255, 255, 255, 0));
    box-shadow: 0 24px 90px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.07) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
    pointer-events: none;
}

.auth-brand-copy,
.auth-feature-chips,
.auth-product-visual {
    position: relative;
    z-index: 1;
}

.auth-product-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--auth-muted-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.auth-brand-copy h2 {
    max-width: 620px;
    margin: 22px 0 14px;
    color: var(--auth-text);
    font-size: 44px;
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-brand-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 16px;
    line-height: 1.7;
}

.auth-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.auth-feature-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    background: var(--auth-card);
    color: var(--auth-muted-dark);
    font-size: 13px;
    font-weight: 700;
}

.auth-product-visual {
    margin-top: 42px;
    min-height: 335px;
}

.auth-visual-card {
    width: min(100%, 560px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.13);
    overflow: hidden;
}

.auth-visual-header {
    height: 42px;
    padding-inline: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--auth-border);
    background: #ffffff;
}

.auth-visual-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.auth-visual-content {
    height: 292px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #ffffff, #f8fafc),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0));
}

.auth-visual-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(0.86);
}

.auth-floating-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 142px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(16px);
}

.auth-floating-card span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-floating-card strong {
    color: var(--auth-text);
    font-size: 22px;
    font-weight: 780;
    line-height: 1;
}

.auth-floating-card-sales {
    inset-inline-start: 24px;
    bottom: 14px;
}

.auth-floating-card-stock {
    inset-inline-end: 8px;
    top: 22px;
}

.auth-floating-card-branches {
    inset-inline-end: 36px;
    bottom: 34px;
}

.auth-floating-card-sync {
    inset-inline-start: 38%;
    bottom: 8px;
}

.auth-card-panel {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(100%, 468px);
    padding: 34px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 30px;
    background: var(--auth-card);
    box-shadow: var(--auth-shadow);
}

.auth-logo {
    width: fit-content;
    max-width: 180px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
}

.auth-logo img,
.auth-modal-logo img,
.success-modal-body img {
    max-width: 170px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading h1,
.auth-modal-heading h4 {
    margin: 0;
    color: var(--auth-text);
    font-size: 30px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: 0;
}

.auth-heading p,
.auth-modal-heading p {
    margin: 10px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label,
.auth-field .custom-label {
    margin: 0;
    color: var(--auth-muted-dark) !important;
    font-size: 13px;
    font-weight: 740;
    line-height: 1.3;
}

.auth-input-wrap {
    position: relative;
}

.auth-input,
.auth-modal .form-control,
.auth-modal textarea,
.auth-modal select {
    width: 100%;
    min-height: 52px;
    padding: 13px 44px;
    border: 1px solid var(--auth-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--auth-text) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-modal textarea {
    min-height: 92px;
    padding-inline: 14px;
}

.auth-input::placeholder,
.auth-modal .form-control::placeholder,
.auth-modal textarea::placeholder {
    color: #94a3b8 !important;
}

.auth-input:focus,
.auth-modal .form-control:focus,
.auth-modal textarea:focus,
.auth-modal select:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1) !important;
    outline: none;
}

.auth-input-icon {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--auth-muted);
    font-size: 15px;
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.auth-password-toggle img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.72;
}

.auth-password-toggle img:last-child,
.auth-password-toggle.show-pass img:first-child {
    display: none;
}

.auth-password-toggle.show-pass img:last-child {
    display: block;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: -2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--auth-muted-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 6px;
    accent-color: var(--auth-primary);
}

.auth-form-row a,
.auth-secondary-links a,
.auth-bottom-link a,
.auth-modal-footnote a,
.auth-otp-meta .reset {
    color: var(--auth-primary) !important;
    font-weight: 720;
    text-decoration: none;
}

.auth-form-row a:hover,
.auth-secondary-links a:hover,
.auth-bottom-link a:hover,
.auth-modal-footnote a:hover,
.auth-otp-meta .reset:hover {
    color: var(--auth-primary-hover) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-primary-btn,
.mybazar-login-section .login-btn.auth-primary-btn,
.auth-modal .auth-primary-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    padding: 12px 18px;
    border: 1px solid var(--auth-primary) !important;
    border-radius: 14px !important;
    background: var(--auth-primary) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.2;
    box-shadow: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.auth-primary-btn:hover,
.auth-primary-btn:focus-visible {
    background: var(--auth-primary-hover) !important;
    border-color: var(--auth-primary-hover) !important;
    color: #ffffff !important;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .auth-primary-btn:hover {
        transform: translateY(-1px);
    }
}

.auth-primary-btn:active {
    transform: scale(0.99);
}

.auth-primary-btn:disabled,
.auth-primary-btn.disabled {
    opacity: 0.72;
    transform: none;
    cursor: not-allowed;
}

.auth-secondary-btn {
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid var(--auth-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--auth-primary) !important;
    font-weight: 740;
}

.auth-secondary-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-divider {
    position: relative;
    margin: 24px 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    position: relative;
    z-index: 1;
    padding-inline: 12px;
    background: #ffffff;
}

.auth-social-grid.social-login,
.auth-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-social-btn.login-social,
.auth-social-btn {
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 12px !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--auth-text) !important;
    font-size: 14px !important;
    font-weight: 740 !important;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.auth-social-btn:hover,
.auth-social-btn:focus-visible {
    border-color: rgba(15, 23, 42, 0.22) !important;
    background: #f8fafc !important;
    color: var(--auth-text) !important;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .auth-social-btn:hover {
        transform: translateY(-1px);
    }
}

.auth-social-btn:active {
    transform: scale(0.99);
}

.auth-social-btn img {
    width: 21px !important;
    height: 21px !important;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 50%;
}

.auth-bottom-link {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-bottom-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.auth-alert ul {
    margin: 8px 0 0;
    padding-inline-start: 18px;
}

.auth-alert-success {
    border: 1px solid rgba(22, 163, 74, 0.18);
    background: #f0fdf4;
    color: #166534;
}

.auth-alert-warning {
    border: 1px solid rgba(202, 138, 4, 0.22);
    background: #fefce8;
    color: #854d0e;
}

.auth-alert-error {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: #fef2f2;
    color: #991b1b;
}

label.error {
    display: block;
    margin: 8px 0 0;
    color: var(--auth-error) !important;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.auth-field .form-control.error,
.auth-input.error {
    border-color: var(--auth-error) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.auth-modal .modal-dialog {
    width: min(100% - 24px, 520px);
}

.auth-modal-content {
    border: 1px solid var(--auth-border-strong) !important;
    border-radius: 28px !important;
    background: #ffffff !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden;
}

.auth-modal-header {
    min-height: 50px;
    padding: 16px 18px 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.auth-modal-close {
    margin-inline-start: auto !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.auth-modal-body {
    padding: 0 30px 30px !important;
}

.auth-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-modal-heading {
    margin-bottom: 22px;
    text-align: center;
}

.auth-modal-heading h4 {
    font-size: 26px;
}

.auth-plan-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: var(--auth-border);
}

.auth-plan-card > div {
    padding: 13px 14px;
    background: #f8fafc;
}

.auth-plan-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-plan-card strong {
    display: block;
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 780;
}

.auth-modal-footnote {
    margin: 18px 0 0 !important;
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-pin-container {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px !important;
}

.auth-pin-container .pin-input {
    width: 100% !important;
    height: 54px !important;
    padding: 0 !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--auth-text) !important;
    text-align: center;
    font-size: 20px;
    font-weight: 780;
}

.auth-otp-meta {
    margin: 14px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-otp-meta .countdown {
    color: var(--auth-text);
    font-weight: 760;
}

.success-modal-body .auth-modal-heading {
    margin-top: 18px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--auth-text) !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
        gap: 26px;
    }

    .auth-brand-panel {
        padding: 34px;
    }

    .auth-brand-copy h2 {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .auth-page {
        align-items: flex-start;
        padding: 22px 14px;
    }

    .auth-shell {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .auth-card-panel {
        order: 1;
        width: 100%;
    }

    .auth-brand-panel {
        order: 2;
        width: min(100%, 468px);
        min-height: auto;
        padding: 24px;
    }

    .auth-product-visual {
        display: none;
    }

    .auth-brand-copy h2 {
        font-size: 26px;
    }

    .auth-brand-copy p {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .auth-page {
        padding: 14px 10px;
    }

    .auth-card,
    .auth-brand-panel {
        border-radius: 22px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-heading h1,
    .auth-modal-heading h4 {
        font-size: 25px;
    }

    .auth-form-row,
    .auth-secondary-links {
        align-items: flex-start;
    }

    .auth-form-row {
        flex-direction: column;
    }

    .auth-social-grid.social-login,
    .auth-social-grid,
    .auth-plan-card {
        grid-template-columns: 1fr;
    }

    .auth-modal-body {
        padding: 0 20px 24px !important;
    }

    .auth-pin-container {
        gap: 6px !important;
    }

    .auth-pin-container .pin-input {
        height: 48px !important;
        border-radius: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
