/* MEGASHOP BIDYAKUT — shared styles for auth & account foundation pages */

:root {
    --brand: #0d6e4b;
    --brand-dark: #095638;
    --brand-soft: #e8f5ef;
    --brand-accent: #f59e0b;
    --brand-accent-dark: #d97706;
    --brand-teal: #0f766e;
}

body.simple-body {
    font-family: "Noto Sans Bengali", "Hind Siliguri", sans-serif;
    min-height: 100vh;
    background: linear-gradient(160deg, #e8f7ef 0%, #ffffff 45%, #fdf0dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.35;
}

.simple-wrap {
    width: 100%;
    max-width: 460px;
}

.simple-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    color: var(--brand-dark);
}

.simple-logo-icon {
    font-size: 2rem;
    color: var(--brand);
}

.simple-brand-name {
    font-size: 1.45rem;
    font-weight: 800;
}

.simple-container {
    background: #ffffff;
    border: 1px solid #e2ece7;
    border-top: 3px solid var(--brand-accent);
    border-radius: 1rem;
    box-shadow: 0 14px 40px rgba(9, 86, 56, 0.10);
    padding: 1.5rem;
}

.simple-container a {
    color: var(--brand);
    text-decoration: none;
}

.simple-container a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.simple-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #12372a;
    margin-bottom: 0.25rem;
}

.simple-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.simple-btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
}

.simple-btn-primary:hover,
.simple-btn-primary:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.form-label {
    font-weight: 600;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 75, .15);
}

.form-check-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 75, .15);
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.auth-divider {
    border-top: 1px solid #e5eef8;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-pending   { background: #fff4d6; color: #7a5b00; }
.status-active    { background: var(--brand-soft); color: var(--brand-dark); }
.status-suspended { background: #ffe3e3; color: #9b1c1c; }
.status-rejected  { background: #ffe3e3; color: #9b1c1c; }
.status-muted     { background: #eef1f4; color: #4a5568; }

/* ============================================================
   PHASE 6 — AUTH PAGES POLISH
   ============================================================ */

/* Consistent, aligned buttons with clear states */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-weight: 600;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out,
                color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease;
}

.btn:active:not(.btn-close):not(:disabled) {
    transform: translateY(1px);
}

.btn:disabled,
.btn.disabled {
    cursor: not-allowed;
}

/* Modern forms: consistent height, muted placeholder, soft border */
.form-control,
.form-select {
    border-color: #d5e0db;
    padding: .55rem .9rem;
    min-height: 46px;
}

textarea.form-control {
    min-height: 0;
}

.form-control::placeholder {
    color: #98a59e;
    opacity: 1;
}

.input-group-text {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #d5e0db;
}

.form-check-label {
    color: #5b6b62;
}

.simple-container {
    padding: 1.75rem;
}

.simple-title {
    font-size: 1.4rem;
}

/* Accessibility */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

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

@media (max-width: 576px) {
    .simple-container { padding: 1.1rem; }
    .simple-brand-name { font-size: 1.2rem; }
}

/* ============================================================
   PHASE 7 — VIBRANT PREMIUM (auth pages)
   Gradient brand logo, gradient primary button, failed badge.
   ============================================================ */

.simple-logo-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    font-size: 1.25rem;
    border-radius: .75rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d6e4b 55%, #095638 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(9, 86, 56, .28);
}

.simple-container {
    box-shadow: 0 18px 46px rgba(9, 86, 56, .14);
}

.simple-btn-primary {
    background-image: linear-gradient(135deg, #0f766e 0%, #0d6e4b 55%, #095638 100%);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(9, 86, 56, .22);
}

.simple-btn-primary:hover,
.simple-btn-primary:focus {
    background-image: linear-gradient(135deg, #115e59 0%, #095638 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(9, 86, 56, .28);
}

.status-failed {
    background: #fde2e4;
    color: #9b1c1c;
}

/* ============================================================
   CUSTOMER REDESIGN — AUTH PAGES (aligned with customer theme)
   ============================================================ */

body.simple-body {
    background:
        radial-gradient(720px 300px at 10% 0%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 60%),
        radial-gradient(760px 320px at 92% 4%, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 60%),
        linear-gradient(160deg, #e8f7ef 0%, #ffffff 45%, #fdf0dc 100%);
    background-attachment: fixed;
}

.simple-wrap {
    max-width: 460px;
}

.simple-container {
    border-radius: 1.25rem;
    border: 1px solid rgba(13, 110, 75, 0.10);
    border-top: 4px solid var(--brand-accent);
    box-shadow: 0 26px 64px rgba(9, 86, 56, 0.16), 0 0 0 1px rgba(13, 110, 75, 0.05);
}

.simple-logo-icon {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(9, 86, 56, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.simple-brand-name {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.simple-title {
    font-size: 1.45rem;
}

.simple-title i {
    background: linear-gradient(135deg, #0f766e 0%, #0d6e4b 55%, #095638 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-grid;
    place-items: center;
    width: 1.5em;
}

.simple-subtitle {
    color: #5b6b62;
}

.form-control,
.form-select {
    border-radius: 0.75rem;
    border: 1.5px solid #d5e0db;
    min-height: 48px;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 75, 0.15);
}

textarea.form-control {
    min-height: 0;
}

.input-group .input-group-text {
    border-radius: 0.75rem 0 0 0.75rem;
    border: 1.5px solid #d5e0db;
    border-right: none;
    color: var(--brand);
    background: var(--brand-soft);
}

.input-group .form-control {
    border-radius: 0 0.75rem 0.75rem 0;
}

.input-group .btn-outline-secondary {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 1.5px solid #d5e0db;
    border-left: none;
    color: #64756c;
    background: #ffffff;
}

.input-group .btn-outline-secondary:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.simple-btn-primary {
    border-radius: 0.8rem;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    letter-spacing: 0.01em;
}

.simple-btn-primary:hover,
.simple-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(9, 86, 56, 0.34);
}

.btn-outline-primary,
.btn-outline-success {
    border-radius: 0.8rem;
    padding: 0.6rem 1rem;
}

.btn-outline-primary {
    border: 1.5px solid var(--brand);
    color: var(--brand-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--brand-soft);
    border-color: var(--brand-dark);
    color: var(--brand-darker);
    transform: translateY(-1px);
}

.btn-outline-success {
    border: 1.5px solid #16a34a;
    color: #15803d;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: #e8f7ee;
    border-color: #15803d;
    color: #14532d;
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: #4a5b52;
}

.form-check-label {
    color: #5b6b62;
}

.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.auth-divider {
    border-top: 1px dashed #d5e0db;
}

.alert {
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(9, 86, 56, 0.08);
}

@media (max-width: 400px) {
    .simple-container {
        padding: 1.15rem;
    }

    .simple-brand-name {
        font-size: 1.15rem;
    }

    .simple-title {
        font-size: 1.25rem;
    }
}
