/* Fujest customer auth — matches dashboard UI (login, register, forgot, lock) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --auth-purple: #7c3aed;
    --auth-purple-deep: #5b21b6;
    --auth-purple-soft: #f3e8ff;
    --auth-bg: #f8f9fb;
    --auth-ink: #1f1635;
    --auth-muted: #6b7280;
    --auth-line: #e8e4f2;
    --auth-radius: 16px;
}

body.vh-100,
body.auth-page-body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: var(--auth-bg) !important;
    color: var(--auth-ink);
}

.authincation {
    background:
        radial-gradient(circle at 12% 18%, rgba(167, 139, 250, 0.28), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(124, 58, 237, 0.16), transparent 46%),
        var(--auth-bg) !important;
    min-height: 100vh;
    min-height: 100dvh;
}

.authincation .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.authincation .authincation-content {
    background: #fff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.1);
    overflow: hidden;
}

.authincation .auth-form {
    padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 576px) {
    .authincation .auth-form {
        padding: 2.35rem 2.25rem 2rem;
    }
}

.auth-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    margin-bottom: .35rem;
}

.auth-brand img {
    max-height: 56px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.auth-brand-name {
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: var(--auth-purple);
    line-height: 1;
}

.authincation .auth-form h4,
.auth-title {
    color: var(--auth-ink) !important;
    font-weight: 800 !important;
    font-size: 1.45rem !important;
    letter-spacing: -0.02em;
    margin-bottom: .35rem !important;
}

.auth-subtitle {
    color: var(--auth-muted);
    font-size: .92rem;
    font-weight: 500;
    margin: 0 0 1.35rem;
    line-height: 1.45;
}

.authincation .auth-form label,
.authincation .auth-form label strong,
.auth-split .auth-label,
.auth-label {
    display: block;
    font-size: .82rem;
    font-weight: 650 !important;
    color: #374151 !important;
    margin-bottom: .4rem;
}

.authincation .form-control,
.auth-split .form-control {
    border-radius: 12px !important;
    border: 1px solid var(--auth-line) !important;
    min-height: 50px;
    padding: .7rem .95rem;
    font-weight: 500;
    color: var(--auth-ink);
    background: #fff !important;
    box-shadow: none !important;
}

.authincation .form-control::placeholder,
.auth-split .form-control::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.authincation .form-control:focus,
.auth-split .form-control:focus {
    border-color: #c4b5fd !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
    background: #fff !important;
}

.authincation .btn-auth-primary,
.authincation .btn.btn-auth-primary,
.auth-split .btn-auth-primary,
.auth-split .btn.btn-auth-primary {
    background: var(--auth-purple) !important;
    border-color: var(--auth-purple) !important;
    color: #fff !important;
    font-weight: 750 !important;
    border-radius: 12px !important;
    min-height: 52px;
    padding: .8rem 1.25rem;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.authincation .btn-auth-primary:hover,
.authincation .btn.btn-auth-primary:hover,
.authincation .btn-auth-primary:focus,
.auth-split .btn-auth-primary:hover,
.auth-split .btn.btn-auth-primary:hover,
.auth-split .btn-auth-primary:focus {
    background: var(--auth-purple-deep) !important;
    border-color: var(--auth-purple-deep) !important;
    color: #fff !important;
    filter: brightness(1.03);
}

.authincation .new-account,
.authincation .new-account p {
    color: var(--auth-muted);
    font-size: .9rem;
    font-weight: 500;
}

.authincation .new-account a,
.authincation a:not(.btn):not(.auth-brand),
.auth-split .auth-meta-row a {
    color: var(--auth-purple) !important;
    font-weight: 700;
    text-decoration: none;
}

.authincation .new-account a:hover,
.authincation a:not(.btn):not(.auth-brand):hover,
.auth-split .auth-meta-row a:hover {
    color: var(--auth-purple-deep) !important;
}

.authincation .form-check-input,
.auth-split .form-check-input {
    border-radius: 6px;
    border-color: #d1d5db;
}

.authincation .form-check-input:checked,
.auth-split .form-check-input:checked {
    background-color: var(--auth-purple);
    border-color: var(--auth-purple);
}

.authincation .form-check-label,
.auth-split .form-check-label {
    color: var(--auth-muted) !important;
    font-size: .86rem;
    font-weight: 500;
}

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

.auth-password-wrap .form-control {
    padding-right: 2.85rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    padding: 0.25rem 0.35rem;
    line-height: 1;
    cursor: pointer;
}

.auth-password-toggle:hover {
    color: var(--auth-purple);
}

.auth-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem 1rem;
    margin: 1rem 0 1.35rem;
}

.auth-footer-mini {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1eef8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 500;
}

.auth-footer-mini a {
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.auth-footer-mini a:hover {
    color: var(--auth-purple) !important;
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.authincation .alert,
.auth-split .alert {
    border-radius: 12px;
    border: 0;
    font-size: .9rem;
    font-weight: 500;
}

.auth-success-modal-header {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #8b5cf6 100%);
}

.auth-panel-top {
    height: 6px;
    background: linear-gradient(90deg, #5b21b6, #7c3aed 50%, #a78bfa);
}

/* —— Split login layout (matches marketing UI) —— */
body.auth-split-page {
    overflow-x: hidden;
    background: #f3f4f8 !important;
}

body.auth-split-page .authincation {
    display: none;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.auth-split-promo {
    position: relative;
    background:
        radial-gradient(ellipse 80% 55% at 18% 12%, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 88% 78%, rgba(167, 139, 250, 0.35), transparent 50%),
        linear-gradient(160deg, #6d28d9 0%, #7c3aed 42%, #5b21b6 100%);
    color: #fff;
    padding: 2.25rem 2.5rem 2rem;
    overflow: hidden;
}

.auth-split-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.5px),
        radial-gradient(circle at 20% 70%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px);
    background-size: 48px 48px, 36px 36px;
    opacity: 0.5;
    pointer-events: none;
}

.auth-split-promo-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.auth-split-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: #fff !important;
    margin-bottom: 2.75rem;
    width: fit-content;
}

.auth-split-mark {
    width: 42px;
    height: 42px;
    position: relative;
    flex-shrink: 0;
}

.auth-split-mark span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    transform: rotate(18deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.auth-split-mark span:nth-child(1) { top: 2px; left: 2px; background: #fff; }
.auth-split-mark span:nth-child(2) { top: 2px; right: 2px; background: rgba(255, 255, 255, 0.55); }
.auth-split-mark span:nth-child(3) { bottom: 2px; left: 2px; background: rgba(233, 213, 255, 0.9); }
.auth-split-mark span:nth-child(4) { bottom: 2px; right: 2px; background: #c4b5fd; }

.auth-split-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-split-brand-text strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-split-brand-text small {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.82;
    margin-top: 0.15rem;
}

.auth-split-copy {
    margin-bottom: 2rem;
}

.auth-split-kicker {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.92;
    margin: 0 0 0.65rem;
}

.auth-split-headline {
    font-size: clamp(1.85rem, 2.6vw, 2.45rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 0 0 0.85rem;
    color: #fff;
}

.auth-split-headline em {
    font-style: normal;
    color: #e9d5ff;
}

.auth-split-lead {
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 500;
    opacity: 0.88;
    margin: 0;
    max-width: 28rem;
}

.auth-split-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.auth-split-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-split-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.auth-split-features strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.auth-split-features small {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.8;
    line-height: 1.35;
}

.auth-split-hero-art {
    position: relative;
    margin-top: auto;
    height: 210px;
    max-width: 340px;
}

.auth-art-wallet {
    position: absolute;
    left: 8%;
    bottom: 18%;
    width: 150px;
    height: 110px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 18px 28px rgba(46, 16, 101, 0.45));
    animation: auth-float-a 5.5s ease-in-out infinite;
}

.auth-art-wallet-body {
    position: absolute;
    inset: 28% 0 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #a78bfa, #7c3aed 55%, #5b21b6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-art-wallet-body::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22%;
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.22);
}

.auth-art-card {
    position: absolute;
    left: 14%;
    width: 72%;
    height: 42%;
    border-radius: 8px;
}

.auth-art-card--back {
    top: 0;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    transform: rotate(-6deg);
}

.auth-art-card--front {
    top: 10%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    transform: rotate(4deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.auth-art-phone {
    position: absolute;
    right: 6%;
    bottom: 8%;
    width: 118px;
    height: 188px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border: 3px solid #fff;
    box-shadow: 0 22px 40px rgba(46, 16, 101, 0.4);
    overflow: hidden;
    animation: auth-float-b 6s ease-in-out infinite;
}

.auth-art-phone-notch {
    width: 42%;
    height: 8px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #cbd5e1;
}

.auth-art-phone-screen {
    margin: 12px 10px 10px;
    padding: 12px 10px;
    border-radius: 14px;
    background: linear-gradient(160deg, #ede9fe, #fff);
    height: calc(100% - 30px);
}

.auth-art-balance-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
}

.auth-art-balance {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #5b21b6;
    letter-spacing: -0.02em;
}

.auth-art-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 1.1rem;
    height: 48px;
}

.auth-art-bars span {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
    opacity: 0.85;
}

.auth-art-bars span:nth-child(1) { height: 38%; }
.auth-art-bars span:nth-child(2) { height: 62%; }
.auth-art-bars span:nth-child(3) { height: 48%; }
.auth-art-bars span:nth-child(4) { height: 78%; }

.auth-art-float {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 10px 22px rgba(46, 16, 101, 0.28);
}

.auth-art-float--shield {
    top: 8%;
    right: 28%;
    background: linear-gradient(145deg, #8b5cf6, #6d28d9);
    color: #fff;
    animation: auth-float-c 4.8s ease-in-out infinite;
}

.auth-art-float--wifi {
    top: 36%;
    left: 2%;
    background: #fff;
    color: #16a34a;
    animation: auth-float-d 5.2s ease-in-out infinite;
}

.auth-art-float--bolt {
    bottom: 42%;
    right: 0;
    background: #fef08a;
    color: #ca8a04;
    animation: auth-float-d 4.4s ease-in-out infinite reverse;
}

@keyframes auth-float-a {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-8px) rotate(-6deg); }
}

@keyframes auth-float-b {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes auth-float-c {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-6deg); }
}

@keyframes auth-float-d {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-split-main {
    display: flex;
    flex-direction: column;
    background: #f3f4f8;
    padding: 1.5rem 1.5rem 1.25rem;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-split-main-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.auth-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: default;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-lang-btn .fa-globe {
    color: var(--auth-purple);
}

.auth-lang-btn .fa-chevron-down {
    font-size: 0.65rem;
    opacity: 0.7;
}

.auth-split-card {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.08);
    padding: 2rem 1.75rem 1.75rem;
}

.auth-split-card-head {
    margin-bottom: 1.35rem;
}

.auth-split-page .auth-title {
    text-align: left !important;
    font-size: 1.75rem !important;
    margin-bottom: 0.35rem !important;
}

.auth-split-page .auth-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.auth-split-page .auth-input-icon {
    position: relative;
}

.auth-split-page .auth-input-leading {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.auth-split-page .auth-input-icon .form-control {
    padding-left: 2.55rem !important;
}

.auth-split-page .auth-password-wrap .form-control {
    padding-right: 2.85rem !important;
}

.auth-split-page .auth-login-btn {
    justify-content: space-between;
    padding-left: 1.35rem;
    padding-right: 1.2rem;
}

.auth-split-page .auth-login-btn span {
    flex: 1;
    text-align: center;
    margin-left: 1rem;
}

.auth-split-signup {
    text-align: center;
    margin: 1.35rem 0 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-split-signup a {
    color: var(--auth-purple) !important;
    font-weight: 750;
    text-decoration: none;
}

.auth-split-signup a:hover {
    color: var(--auth-purple-deep) !important;
}

.auth-split-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 500;
}

.auth-split-footer a {
    color: #9ca3af !important;
    font-weight: 600 !important;
    text-decoration: none;
}

.auth-split-footer a:hover {
    color: var(--auth-purple) !important;
}

.auth-split-page .auth-footer-links {
    gap: 1rem 1.25rem;
}

.auth-field-hint {
    display: block;
    margin-top: 0.4rem;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}

.auth-label-note {
    color: #9ca3af;
    font-weight: 500;
}

.auth-split-page--register .auth-split-card {
    max-width: 480px;
    padding: 1.75rem 1.65rem 1.5rem;
}

.auth-split-page--register .auth-split-main {
    overflow-y: auto;
}

.auth-split-page--register .auth-split-card {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-split-page--register .auth-split-form .mb-3 {
    margin-bottom: 0.9rem !important;
}

@media (min-width: 992px) {
    .auth-split-page--register .auth-split-promo {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split-promo {
        padding: 1.75rem 1.5rem 1.5rem;
        min-height: auto;
    }

    .auth-split-hero-art {
        display: none;
    }

    .auth-split-brand {
        margin-bottom: 1.5rem;
    }

    .auth-split-copy {
        margin-bottom: 1.35rem;
    }

    .auth-split-features {
        margin-bottom: 0.25rem;
    }

    .auth-split-main {
        min-height: auto;
        padding: 1.25rem 1rem 1.5rem;
    }

    .auth-split-card {
        margin: 0.5rem auto 0;
        max-width: 480px;
    }
}

@media (max-width: 575.98px) {
    .auth-split-headline {
        font-size: 1.65rem;
    }

    .auth-split-features {
        gap: 0.85rem;
    }

    .auth-split-card {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 16px;
    }

    .auth-split-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-split-page .auth-login-btn span {
        margin-left: 0;
    }
}
