:root {
    --auth-primary: #6259ca;
    --auth-accent: #0ab39c;
    --auth-ink: #101828;
    --auth-muted: #667085;
    --auth-line: rgba(98, 89, 202, 0.12);
}

/* Materialize 13 auth adaptation */
:root{--auth-primary:#8c57ff;--auth-primary-dark:#7e4ee6;--auth-bg:#f4f5fa;--auth-surface:#fff;--auth-ink:#3f3b59;--auth-muted:#7e7b91;--auth-border:#d8d6e3}
body.main-body{background:var(--auth-bg);font-family:Inter,"Segoe UI",sans-serif;color:var(--auth-ink)}
.profit-login-page{padding:0;min-height:100vh;background:var(--auth-bg)}
.profit-login-page .signpages{width:100%;min-height:100vh;margin:0}
.profit-login-page .signpages>.col-md-12,.profit-login-page .card,.profit-login-page .card>.row{min-height:100vh}
.profit-login-page .card{margin:0;border:0;border-radius:0;background:var(--auth-surface);box-shadow:none}
.profit-login-page .login_form{display:flex;align-items:center;justify-content:center;padding:48px;background:#fff}
.profit-login-page .login_form>.container-fluid{width:100%;max-width:460px;margin:auto}
.profit-login-page .login_form .card-body{margin:0!important;padding:0}
.profit-login-page .login_form h2,.profit-login-page .login_form h3,.profit-login-page .login_form h4{color:var(--auth-ink);font-weight:600;letter-spacing:-.025em}
.profit-login-page .login_form p{color:var(--auth-muted)}
.profit-login-page .form-group{position:relative;margin-bottom:20px}
.profit-login-page .form-group label{display:inline-block;margin-bottom:7px;color:#565168;font-size:13px;font-weight:500}
.profit-login-page .form-control{height:48px;padding:11px 14px;border:1px solid var(--auth-border);border-radius:6px;background:#fff;color:var(--auth-ink);font-size:14px;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.profit-login-page textarea.form-control{height:auto}
.profit-login-page .form-control:focus{border-color:var(--auth-primary);box-shadow:0 0 0 3px rgba(140,87,255,.12)}
.profit-login-page .btn-main-primary,.profit-login-page .btn-primary{min-height:46px;border-color:var(--auth-primary)!important;border-radius:6px;background:var(--auth-primary)!important;color:#fff!important;font-weight:600;box-shadow:0 5px 12px rgba(140,87,255,.24);transition:transform .2s,background .2s,box-shadow .2s}
.profit-login-page .btn-main-primary:hover,.profit-login-page .btn-primary:hover{background:var(--auth-primary-dark)!important;transform:translateY(-1px);box-shadow:0 7px 16px rgba(140,87,255,.3)}
.profit-login-page a{color:var(--auth-primary)}
.profit-login-page .custom-control-input:checked~.custom-control-label:before{border-color:var(--auth-primary);background:var(--auth-primary)}
.profit-login-page .login-mobile-note{margin-bottom:26px!important;font-size:14px;line-height:1.65}
.profit-login-page .alert{border-radius:6px}
.materialize-auth-cover{position:relative;align-items:center;justify-content:center;min-height:100vh!important;padding:48px!important;overflow:hidden;background:#f2f0fa!important;border-radius:0!important}
.materialize-auth-cover:before{display:none!important}
.materialize-cover-inner{display:flex;flex-direction:column;width:min(720px,100%);height:100%;min-height:620px}
.materialize-auth-cover .login-brand-row{position:relative;z-index:3;margin:0}
.materialize-auth-cover .login-brand-row img{max-width:180px;max-height:46px;filter:none}
.materialize-cover-badge{padding:8px 12px;border:1px solid rgba(140,87,255,.22);border-radius:20px;background:rgba(140,87,255,.08);color:var(--auth-primary);font-size:10px;font-weight:700;letter-spacing:.08em}
.materialize-cover-art{position:relative;flex:1;min-height:320px;margin:24px 0 14px}
.materialize-orbit{position:absolute;border-radius:50%;border:1px solid rgba(140,87,255,.16)}
.orbit-one{width:390px;height:390px;left:50%;top:50%;transform:translate(-50%,-50%)}.orbit-two{width:285px;height:285px;left:50%;top:50%;transform:translate(-50%,-50%);border-style:dashed}
.materialize-dashboard-preview{position:absolute;left:50%;top:50%;width:310px;height:205px;transform:translate(-50%,-50%) rotate(-2deg);border:7px solid #4b465c;border-radius:12px;background:#fff;box-shadow:0 30px 55px rgba(75,70,92,.2)}
.preview-sidebar{position:absolute;left:0;top:0;bottom:0;width:56px;background:#2f2b3d}.preview-header{position:absolute;left:56px;right:0;top:0;height:34px;border-bottom:1px solid #e6e4ec}.preview-card{position:absolute;top:52px;width:62px;height:48px;border-radius:5px;background:#eee9ff}.card-one{left:72px}.card-two{left:143px;background:#e1f7f1}.card-three{left:214px;background:#fff0e4}.preview-chart{position:absolute;left:72px;right:18px;bottom:20px;height:64px;border-radius:5px;background:linear-gradient(180deg,rgba(140,87,255,.22),rgba(140,87,255,.02));clip-path:polygon(0 74%,15% 54%,30% 67%,45% 27%,60% 48%,75% 18%,100% 5%,100% 100%,0 100%)}
.materialize-person{position:absolute;left:calc(50% - 205px);bottom:22px;width:92px;height:150px}.person-head{position:absolute;left:28px;top:0;width:38px;height:38px;border-radius:50%;background:#f1b38d;box-shadow:inset -8px 0 #372f49}.person-body{position:absolute;left:7px;top:34px;width:80px;height:112px;border-radius:42px 42px 12px 12px;background:var(--auth-primary);transform:rotate(4deg)}
.materialize-cover-copy{position:relative;z-index:2;text-align:center}.materialize-cover-copy h1{max-width:560px;margin:0 auto;color:var(--auth-ink);font-size:27px;font-weight:600;letter-spacing:-.035em}.materialize-cover-copy>p{max-width:590px;margin:10px auto 18px;color:var(--auth-muted);font-size:13px;line-height:1.6}.materialize-cover-features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.materialize-cover-features>div{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid rgba(140,87,255,.12);border-radius:7px;background:rgba(255,255,255,.58);text-align:left}.materialize-cover-features i{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:6px;background:rgba(140,87,255,.1);color:var(--auth-primary)}.materialize-cover-features strong,.materialize-cover-features small{display:block}.materialize-cover-features strong{color:var(--auth-ink);font-size:11px}.materialize-cover-features small{margin-top:2px;color:var(--auth-muted);font-size:9px;line-height:1.35}
.legal-public-page .materialize-auth-cover{min-height:100vh!important}.legal-public-page .card{background:#fff}.legal-public-page .terms-modern,.legal-public-page .privacy-modern{text-align:left}
@media(max-width:1199px){.materialize-auth-cover{padding:38px!important}.materialize-cover-features{grid-template-columns:1fr}.materialize-cover-features>div:nth-child(3){display:none}.materialize-cover-art{min-height:280px}.materialize-dashboard-preview{transform:translate(-50%,-50%) scale(.9)}}
@media(max-width:991px){body.main-body{background:#fff}.profit-login-page .login_form{min-height:100vh;padding:34px 24px}.profit-login-page .signpages>.col-md-12,.profit-login-page .card,.profit-login-page .card>.row{min-height:auto}.profit-login-page .login_form .header-brand-img{display:block!important;float:none!important;max-width:170px;margin:0 auto 30px!important}.legal-public-page .login_form{align-items:flex-start}.legal-public-page .login_form>.container-fluid{max-width:760px}}
@media(max-width:575px){.profit-login-page .login_form{padding:28px 20px}.profit-login-page .form-control{font-size:16px}.profit-login-page .login_form h2,.profit-login-page .login_form h3{font-size:23px}}

body.main-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(98, 89, 202, 0.14), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(10, 179, 156, 0.12), transparent 28%),
        linear-gradient(135deg, #f7f9ff 0%, #eef3ff 48%, #f8fbff 100%);
}

.profit-login-page {
    min-height: 100vh;
    padding: 34px 16px;
    align-items: center;
}

.profit-login-page .signpages {
    width: min(1120px, 94%);
    margin: 0 auto;
}

.profit-login-page .card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(36, 35, 82, 0.14);
}

.profit-login-page .details {
    min-height: 640px;
    padding: 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(145deg, #22215f 0%, #4a44b7 52%, #6259ca 100%);
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.profit-login-page .details:before {
    display: none;
}

.login-hero-shell {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    color: #ffffff;
}

.login-hero-shell:before,
.login-hero-shell:after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    opacity: 0.26;
    filter: blur(1px);
}

.login-hero-shell:before {
    width: 210px;
    height: 210px;
    right: -92px;
    top: -74px;
    background: #0ab39c;
}

.login-hero-shell:after {
    width: 160px;
    height: 160px;
    left: -92px;
    bottom: 64px;
    background: #ffffff;
}

.login-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.login-brand-row img {
    max-height: 48px;
    width: auto;
}

.profit-login-page .login_form .header-brand-img,
.legal-public-page .header-brand-img {
    max-height: 42px;
    max-width: 164px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 575px) {
    .login-brand-row img {
        max-height: 42px;
    }

    .profit-login-page .login_form .header-brand-img,
    .legal-public-page .header-brand-img {
        display: block;
        float: none !important;
        margin-left: auto;
        margin-right: auto;
        max-height: 40px;
        max-width: 156px;
    }
}

.login-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-live-pill:before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #17e7ae;
    box-shadow: 0 0 0 6px rgba(23, 231, 174, 0.14);
}

.login-hero-copy span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-hero-copy h1 {
    max-width: 380px;
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.login-hero-copy p {
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.7;
}

.login-market-card {
    margin-top: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.login-market-card.is-up {
    border-color: rgba(23, 231, 174, 0.42);
}

.login-market-card.is-down {
    border-color: rgba(255, 92, 117, 0.42);
}

.login-market-head,
.login-spread-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.login-market-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-market-value {
    margin-top: 4px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.login-market-status {
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(23, 231, 174, 0.16);
    color: #c9fff0;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.login-route-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
}

.login-route-item {
    min-width: 0;
    padding: 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-route-item > span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-route-item strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 8px;
    color: #ffffff;
    font-size: 14px;
}

.login-route-item strong > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-route-logo {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    color: #22215f;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
}

.login-route-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.login-route-price {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.login-route-arrow {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.login-spread-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.login-spread-row strong {
    color: #17e7ae;
    font-size: 14px;
}

.login-feature-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-feature-item i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.login-feature-item strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.login-feature-item p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.45;
}

.profit-login-page .login_form {
    background: #ffffff;
}

.profit-login-page .card-body {
    padding: 48px 56px;
}

.profit-login-page .form-control {
    min-height: 46px;
    border-color: rgba(16, 24, 40, 0.12);
    border-radius: 14px;
}

.profit-login-page .form-control:focus {
    border-color: rgba(98, 89, 202, 0.62);
    box-shadow: 0 0 0 3px rgba(98, 89, 202, 0.1);
}

.profit-login-page label {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profit-login-page .btn-main-primary,
.profit-login-page .btn-primary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #6259ca 0%, #4c43b5 100%);
    box-shadow: 0 14px 30px rgba(98, 89, 202, 0.24);
    font-weight: 800;
}

.profit-login-page .btn-outline-primary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
}

.login-mobile-note {
    display: none;
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f4f7ff;
    color: #4b5565;
    font-size: 13px;
    line-height: 1.5;
}

.login-form-title {
    color: var(--auth-ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.login-form-subtitle {
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-secondary-links,
.auth-secondary-links {
    color: #667085;
    font-size: 13px;
}

.login-secondary-links a,
.auth-secondary-links a {
    color: var(--auth-primary);
    font-weight: 800;
}

.auth-empty-card {
    padding: 34px;
    border-radius: 24px;
    background: #f8faff;
    border: 1px solid var(--auth-line);
    text-align: center;
}

.auth-empty-card h4 {
    color: var(--auth-ink);
    font-size: 22px;
    font-weight: 900;
}

.auth-empty-card p {
    margin: 12px auto 0;
    max-width: 420px;
    color: var(--auth-muted);
    line-height: 1.7;
}

.verification-code-boxes {
    max-width: 410px;
}

.terms-consent-control a {
    color: var(--auth-primary);
    font-weight: 800;
}

@media (max-width: 991px) {
    .profit-login-page {
        padding: 18px 10px;
    }

    .profit-login-page .signpages {
        width: min(560px, 100%);
    }

    .profit-login-page .card {
        border-radius: 24px;
    }

    .profit-login-page .card-body {
        padding: 32px 24px;
    }

    .login-mobile-note {
        display: block;
    }
}

@media (max-width: 575px) {
    .profit-login-page .card-body {
        padding: 28px 18px;
    }

    .login-form-title {
        font-size: 21px;
    }

    .profit-login-page .btn-main-primary,
    .profit-login-page .btn-primary,
    .profit-login-page .btn-outline-primary {
        min-height: 46px;
    }
}
