/* ==========================================================================
   ADViK ACCOUNTS - ADVANCED PRO UI
   MDB5 + Bootstrap 5 compatible
   Primary: #38105d | Accent: #ff9800
   ========================================================================== */

:root {
    --acc-brand: #38105d;
    --acc-brand-dark: #24063d;
    --acc-brand-light: #5f2187;
    --acc-accent: #ff9800;
    --acc-accent-dark: #e98b00;
    --acc-text: #21162a;
    --acc-muted: #746a7d;
    --acc-border: #e9e1ee;
    --acc-soft: #f6f0fa;
    --acc-success: #16a34a;
    --acc-danger: #dc2626;
    --acc-warning: #f59e0b;
}

.accounts-page .site-footer {
    margin-top: 0;
}

.account-auth-page {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    padding: 74px 0 110px;
    background:
        radial-gradient(circle at 8% 8%, rgba(56, 16, 93, .10), transparent 29%),
        radial-gradient(circle at 94% 14%, rgba(255, 152, 0, .11), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #faf6fd 58%, #fff8ef 100%);
}

.account-auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.account-auth-orb-one {
    width: 330px;
    height: 330px;
    left: -160px;
    top: 70px;
    background: rgba(56, 16, 93, .07);
}

.account-auth-orb-two {
    width: 360px;
    height: 360px;
    right: -170px;
    bottom: 30px;
    background: rgba(255, 152, 0, .09);
}

.account-auth-shell,
.account-settings-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr);
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--acc-border);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 32px 95px rgba(56, 16, 93, .14);
}

.account-auth-shell-register {
    max-width: 1240px;
    grid-template-columns: minmax(380px, .78fr) minmax(620px, 1.22fr);
}

.account-auth-brand,
.account-security-panel {
    position: relative;
    overflow: hidden;
    padding: 48px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 5%, rgba(255, 152, 0, .16), transparent 27%),
        linear-gradient(145deg, var(--acc-brand-dark) 0%, var(--acc-brand) 65%, var(--acc-brand-light) 100%);
}

.account-auth-brand::after,
.account-security-panel::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -120px;
    bottom: -100px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.account-auth-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}

.account-auth-logo:hover { color: #fff; }

.account-auth-logo-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.account-auth-logo-mark img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.account-auth-logo > span:last-child {
    display: grid;
}

.account-auth-logo strong {
    color: #fff;
    font: 900 22px/1 "Manrope", sans-serif;
    letter-spacing: -.04em;
}

.account-auth-logo small {
    margin-top: 5px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
}

.account-auth-brand-copy {
    position: relative;
    z-index: 2;
    margin-top: 58px;
}

.account-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffbd53;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.account-auth-kicker-dark {
    color: var(--acc-accent);
}

.account-auth-brand h1,
.account-security-panel h1 {
    margin: 14px 0 18px;
    color: #fff;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -.055em;
}

.account-auth-brand-copy > p,
.account-security-panel > p {
    max-width: 510px;
    color: rgba(255,255,255,.73);
    font-size: 14px;
    line-height: 1.85;
}

.account-auth-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.account-auth-benefits article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 17px;
    background: rgba(255,255,255,.08);
}

.account-auth-benefits article > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.08);
    color: var(--acc-accent);
}

.account-auth-benefits article div {
    display: grid;
}

.account-auth-benefits strong {
    color: #fff;
    font-size: 12px;
}

.account-auth-benefits small {
    margin-top: 3px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    line-height: 1.45;
}

.account-auth-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 32px;
    color: rgba(255,255,255,.56);
    font-size: 9px;
}

.account-auth-brand-footer i {
    color: var(--acc-accent);
}

.account-auth-card {
    padding: 46px;
    background: #fff;
}

.account-register-card {
    padding: 42px;
}

.account-auth-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.account-auth-head-icon,
.account-compact-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #fff1dc;
    color: var(--acc-accent);
    font-size: 19px;
}

.account-auth-card-head h2 {
    margin: 5px 0 4px;
    color: var(--acc-text);
    font-size: 28px;
    letter-spacing: -.035em;
}

.account-auth-card-head p {
    margin: 0;
    color: var(--acc-muted);
    font-size: 11px;
}

.account-form {
    display: grid;
    gap: 20px;
}

.account-form-section {
    display: grid;
    gap: 17px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee8f1;
}

.account-form-section:last-of-type {
    border-bottom: 0;
}

.account-form-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-form-section-head > span {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--acc-soft);
    color: var(--acc-brand);
    font-size: 11px;
    font-weight: 900;
}

.account-form-section-head > div {
    display: grid;
}

.account-form-section-head strong {
    color: var(--acc-text);
    font-size: 13px;
}

.account-form-section-head small {
    margin-top: 2px;
    color: var(--acc-muted);
    font-size: 9px;
}

.account-form-grid {
    display: grid;
    gap: 16px;
}

.account-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.account-field label,
.account-label-row label {
    margin: 0;
    color: #403647;
    font-size: 12px;
    font-weight: 800;
}

.account-field label em,
.account-switch-card em {
    color: var(--acc-danger);
    font-style: normal;
}

.account-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-inline-link {
    color: var(--acc-brand);
    font-size: 10px;
    font-weight: 800;
}

.account-inline-link:hover {
    color: var(--acc-accent);
}

.account-input-shell {
    position: relative;
}

.account-input-shell > i {
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94899c;
    font-size: 14px;
    pointer-events: none;
}

.account-control {
    width: 100%;
    min-height: 54px;
    padding: 12px 45px 12px 45px !important;
    border: 1px solid #e5dfe9 !important;
    border-radius: 14px !important;
    outline: 0 !important;
    background: #fbfafc !important;
    color: var(--acc-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-control:focus {
    border-color: rgba(56,16,93,.45) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(56,16,93,.065) !important;
}

.account-control::placeholder {
    color: #a49aa9;
    font-weight: 500;
}

.account-password-shell .account-control {
    padding-right: 50px !important;
}

.account-password-toggle {
    position: absolute;
    z-index: 3;
    right: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #918699;
}

.account-password-toggle:hover {
    background: var(--acc-soft);
    color: var(--acc-brand);
}

.account-field-help {
    color: var(--acc-muted);
    font-size: 9px;
    line-height: 1.5;
}

.account-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--acc-danger);
    font-size: 10px;
    font-weight: 650;
}

.account-field.has-error .account-control {
    border-color: rgba(220,38,38,.42) !important;
    background: #fffafa !important;
}

.account-alert {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    margin: 0 0 22px;
    padding: 14px 44px 14px 14px;
    border-radius: 15px;
    border: 1px solid rgba(220,38,38,.15);
}

.account-alert-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(220,38,38,.09);
    color: var(--acc-danger);
}

.account-alert > div {
    display: grid;
}

.account-alert strong {
    font-size: 11px;
}

.account-alert span {
    font-size: 10px;
}

.account-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.account-role-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 98px;
    padding: 15px;
    border: 1px solid var(--acc-border);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.account-role-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56,16,93,.22);
    box-shadow: 0 12px 30px rgba(56,16,93,.07);
}

.account-role-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-role-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--acc-soft);
    color: var(--acc-brand);
}

.account-role-card > span:nth-child(3) {
    display: grid;
}

.account-role-card strong {
    color: var(--acc-text);
    font-size: 12px;
}

.account-role-card small {
    margin-top: 3px;
    color: var(--acc-muted);
    font-size: 9px;
    line-height: 1.45;
}

.account-role-check {
    color: #c9c0ce;
}

.account-role-card:has(input:checked) {
    border-color: rgba(255,152,0,.45);
    background: linear-gradient(135deg, #faf6fd, #fff7ea);
    box-shadow: 0 13px 32px rgba(255,152,0,.08);
}

.account-role-card:has(input:checked) .account-role-icon {
    background: linear-gradient(135deg, var(--acc-brand), var(--acc-brand-light));
    color: #fff;
}

.account-role-card:has(input:checked) .account-role-check {
    color: var(--acc-success);
}

.account-switch-stack {
    display: grid;
    gap: 12px;
}

.account-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    background: #fbfafc;
}

.account-switch-card > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account-switch-card > div > span:last-child {
    display: grid;
}

.account-switch-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--acc-soft);
    color: var(--acc-brand);
}

.account-switch-icon.whatsapp {
    background: #eaf8ee;
    color: #16a34a;
}

.account-switch-card strong {
    color: var(--acc-text);
    font-size: 11px;
}

.account-switch-card small {
    margin-top: 2px;
    color: var(--acc-muted);
    font-size: 9px;
}

.account-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex: 0 0 50px;
}

.account-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.account-switch > span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d5ceda;
    cursor: pointer;
    transition: .18s ease;
}

.account-switch > span::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    transition: transform .18s ease;
}

.account-switch input:checked + span {
    background: linear-gradient(135deg, var(--acc-brand), var(--acc-accent));
}

.account-switch input:checked + span::before {
    transform: translateX(22px);
}

.account-security-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 14px;
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    background: #faf8fc;
    color: var(--acc-muted);
    font-size: 9px;
    line-height: 1.6;
}

.account-security-note i {
    margin-top: 2px;
    color: var(--acc-brand);
}

.account-submit-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 15px 32px rgba(255,152,0,.23);
}

.account-secondary-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 1px solid rgba(56,16,93,.14);
    border-radius: 14px;
    background: #fff;
    color: var(--acc-brand);
    font-size: 12px;
    font-weight: 800;
}

.account-secondary-btn:hover {
    border-color: var(--acc-brand);
    background: var(--acc-brand);
    color: #fff;
}

.account-auth-divider {
    position: relative;
    margin: 23px 0 15px;
    text-align: center;
}

.account-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #eee8f1;
}

.account-auth-divider span {
    position: relative;
    z-index: 2;
    padding: 0 12px;
    background: #fff;
    color: var(--acc-muted);
    font-size: 9px;
}

.account-auth-help {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 17px;
    color: var(--acc-muted);
    font-size: 9px;
}

.account-auth-help a,
.account-back-link {
    color: var(--acc-brand);
    font-weight: 800;
}

.account-password-meter {
    display: grid;
    gap: 6px;
}

.account-password-meter-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #ede8f0;
}

.account-password-meter-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #c4b8cb;
    transition: width .2s ease, background .2s ease;
}

.account-password-meter small {
    color: var(--acc-muted);
    font-size: 9px;
}

.account-password-meter small strong {
    color: var(--acc-text);
}

.account-password-help {
    color: var(--acc-muted);
    font-size: 9px;
    line-height: 1.55;
}

.account-password-help ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.account-auth-centered-page {
    display: flex;
    align-items: center;
}

.account-compact-card,
.account-status-card {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--acc-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 26px 75px rgba(56,16,93,.12);
}

.account-status-card {
    width: min(700px, 100%);
    text-align: center;
}

.account-compact-icon,
.account-status-icon {
    margin-bottom: 18px;
}

.account-status-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    font-size: 28px;
}

.account-status-icon.success {
    background: #edf9f1;
    color: #16a34a;
}

.account-status-icon.warning {
    background: #fff7e7;
    color: #d97706;
}

.account-status-icon.danger {
    background: #fff1f1;
    color: #dc2626;
}

.account-compact-card h1,
.account-status-card h1 {
    margin: 10px 0 12px;
    color: var(--acc-text);
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -.04em;
}

.account-compact-lead,
.account-status-card > p {
    color: var(--acc-muted);
    font-size: 12px;
    line-height: 1.75;
}

.account-recovery-info {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.account-recovery-info > div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    background: #fbfafc;
}

.account-recovery-info i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--acc-soft);
    color: var(--acc-brand);
}

.account-recovery-info span {
    display: grid;
}

.account-recovery-info strong {
    font-size: 11px;
}

.account-recovery-info small {
    margin-top: 2px;
    color: var(--acc-muted);
    font-size: 9px;
}

.account-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    font-size: 10px;
}

.account-status-steps {
    display: grid;
    gap: 10px;
    margin: 26px 0;
    text-align: left;
}

.account-status-steps article {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--acc-border);
    border-radius: 15px;
    background: #fbfafc;
}

.account-status-steps article > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--acc-brand);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.account-status-steps article div {
    display: grid;
}

.account-status-steps strong {
    font-size: 11px;
}

.account-status-steps small {
    color: var(--acc-muted);
    font-size: 9px;
}

.account-status-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.account-settings-shell {
    grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
}

.account-security-panel {
    padding: 46px;
}

.account-security-panel h1 {
    margin-top: 16px;
}

@media (max-width: 1099.98px) {
    .account-auth-shell,
    .account-auth-shell-register,
    .account-settings-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .account-auth-brand,
    .account-security-panel {
        padding: 38px;
    }

    .account-auth-brand-copy {
        margin-top: 34px;
    }

    .account-auth-brand h1,
    .account-security-panel h1 {
        font-size: 42px;
    }
}

@media (max-width: 767.98px) {
    .account-auth-page {
        padding: 45px 0 76px;
    }

    .account-auth-shell,
    .account-settings-shell {
        border-radius: 23px;
    }

    .account-auth-card,
    .account-register-card,
    .account-auth-brand,
    .account-security-panel {
        padding: 26px;
    }

    .account-form-grid.two,
    .account-role-grid,
    .account-status-actions {
        grid-template-columns: 1fr;
    }

    .account-auth-brand h1,
    .account-security-panel h1 {
        font-size: 36px;
    }

    .account-compact-card,
    .account-status-card {
        padding: 28px 22px;
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    .account-auth-page .site-container {
        width: calc(100% - 22px);
    }

    .account-auth-card-head {
        align-items: center;
    }

    .account-auth-head-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .account-auth-card-head h2 {
        font-size: 24px;
    }

    .account-switch-card {
        align-items: flex-start;
    }

    .account-status-card h1,
    .account-compact-card h1 {
        font-size: 27px;
    }
}
