/* Account-page additions to Finapp; shared theme components stay reusable. */
body.juuceworld-auth {
    --auth-green: #14e03d;
    --auth-surface: #1c1f23;
    --auth-text: #f3f4f5;
    --auth-muted: #b2b7bd;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--auth-text);
    background:
        radial-gradient(ellipse at 12% 18%, #282d33 0, transparent 42%),
        radial-gradient(ellipse at 90% 70%, #20252a 0, transparent 45%),
        linear-gradient(150deg, #121416, #101214 65%, #191c20);
    background-attachment: scroll;
    color-scheme: dark;
}
.juuceworld-auth *, .juuceworld-auth *::before, .juuceworld-auth *::after { box-sizing: border-box; }
.juuceworld-auth::before {
    position: fixed;
    inset: 10% -25% auto 42%;
    height: 74vh;
    border-radius: 58% 0 50% 42%;
    border: 1px solid #c4c8ce0c;
    background: linear-gradient(155deg, #70778016, #343a4212 70%, #737b8620);
    transform: rotate(-14deg);
    content: "";
    pointer-events: none;
}
.juuceworld-auth #appCapsule.auth-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(52px, 9vh, 104px) 22px 26px;
    animation: none;
}
.juuceworld-auth .appHeader.auth-header {
    position: relative;
    inset: auto;
    z-index: 1;
    justify-content: space-between;
    flex: 0 0 72px;
    height: 72px;
    margin-bottom: 32px;
    padding: 0 16px;
    background: transparent;
}
.juuceworld-auth .auth-header::before { display: none; }
.juuceworld-auth .auth-header .left, .juuceworld-auth .auth-header .right {
    position: static;
    height: auto;
    padding: 0;
}
.juuceworld-auth .auth-logo { display: inline-flex; align-items: center; }
.juuceworld-auth .auth-logo img { width: 205px; max-width: 100%; height: auto; }
.juuceworld-auth .auth-language {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 5px;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: #f0f2f4;
    box-shadow: 0 0 0 5px #c4c8ce09;
}
.juuceworld-auth .auth-language svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.juuceworld-auth .auth-card {
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #c4c8ce26;
    border-radius: 38px;
    background: #343a4280;
    box-shadow: 0 24px 65px #00000038;
}
.juuceworld-auth .auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 70px;
}
.juuceworld-auth .auth-tab-surface { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--auth-surface); }
.juuceworld-auth .auth-card--register .auth-tab-surface { transform: scaleX(-1); }
.juuceworld-auth .auth-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 21px;
    color: #a9b0b9;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    text-decoration: none;
}
.juuceworld-auth .auth-tab.is-active { color: var(--auth-text); }
.juuceworld-auth .auth-tab.is-active::after {
    position: absolute;
    bottom: 12px;
    width: 43px;
    height: 3px;
    border-radius: 2px;
    background: var(--auth-green);
    content: "";
}
.juuceworld-auth .auth-tab:hover { color: var(--auth-green); }
.juuceworld-auth .auth-form-content { padding: 26px 28px 30px; background: var(--auth-surface); }
.juuceworld-auth .theme-form { margin: 0; }
.juuceworld-auth h1, .juuceworld-auth h2 { margin: 0 0 8px; color: var(--auth-text); font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; }
.juuceworld-auth .theme-form > p:first-of-type { margin-bottom: 28px; color: var(--auth-muted); font-size: 13px; line-height: 1.7; }
.juuceworld-auth .form-group { margin-bottom: 19px; padding: 0; }
.juuceworld-auth .col-form-label { padding: 0 0 8px 8px; color: var(--auth-muted); font-size: 12px; font-weight: 500; }
.juuceworld-auth .form-control, .juuceworld-auth .form-select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid #737a8369;
    border-radius: 999px;
    outline: none;
    color: var(--auth-text);
    background-color: #14171a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
.juuceworld-auth .form-select { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b2b7bd' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-size: 16px; background-position: right 14px center; background-repeat: no-repeat; }
.juuceworld-auth .form-control::placeholder { color: #929aa5; opacity: 1; }
.juuceworld-auth .form-control:focus, .juuceworld-auth .form-select:focus { border-color: var(--auth-green); background-color: #191d21; color: var(--auth-text); box-shadow: 0 0 0 3px #14e03d15; }
.juuceworld-auth .form-control[readonly] { background: #272c32; color: #c8cdd3; }
.juuceworld-auth .form-control.is-invalid, .juuceworld-auth .form-select.is-invalid { border-color: #fa9797; }
.juuceworld-auth .form-control:-webkit-autofill { -webkit-text-fill-color: var(--auth-text); box-shadow: inset 0 0 0 1000px #23282e; caret-color: var(--auth-text); }
.juuceworld-auth .form-input { position: relative; }
.juuceworld-auth .form-input .form-control { padding-right: 72px; }
.juuceworld-auth .show-hide {
    position: absolute;
    top: 7px;
    right: 11px;
    display: grid !important;
    place-items: center;
    min-width: 44px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--auth-muted);
    background: transparent;
    cursor: pointer;
}
.juuceworld-auth .show-hide span::before { content: "Hide"; font-size: 11px; font-weight: 500; }
.juuceworld-auth .show-hide span.show::before { content: "Show"; }
.juuceworld-auth .form-check { display: flex; align-items: flex-start; gap: 9px; min-height: 24px; margin: 0; padding-left: 0; }
.juuceworld-auth .form-check-input {
    position: static;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    appearance: none;
    border: 1px solid #79818b;
    border-radius: 50%;
    background-color: #14171a;
    background-position: center;
    box-shadow: none;
}
.juuceworld-auth .form-check-input:checked { border-color: var(--auth-green); background-color: var(--auth-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23081e10' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E"); }
.juuceworld-auth .form-check-label { margin: 0; padding: 0; color: var(--auth-muted); font-size: 12px; line-height: 22px; }
.juuceworld-auth .form-check-label::before, .juuceworld-auth .form-check-label::after { display: none; }
.juuceworld-auth .auth-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.juuceworld-auth a.link, .juuceworld-auth .theme-form p a, .juuceworld-auth .form-check a { color: #72e792; font-size: 12px; }
.juuceworld-auth .auth-options .link { margin-left: auto; line-height: 22px; white-space: nowrap; }
.juuceworld-auth .auth-terms { flex-wrap: wrap; column-gap: 8px; row-gap: 3px; }
.juuceworld-auth .auth-terms .form-check-label { flex: 1; }
.juuceworld-auth .btn-primary, .juuceworld-auth .btn-success {
    min-height: 56px;
    border: 1px solid var(--auth-green) !important;
    border-radius: 999px;
    color: #05280f !important;
    background: var(--auth-green) !important;
    box-shadow: 0 7px 24px #14e03d15;
    font-size: 16px;
    font-weight: 600;
}
.juuceworld-auth .btn-primary:hover, .juuceworld-auth .btn-primary:focus { background: #42ef64 !important; }
.juuceworld-auth .btn-primary:disabled { opacity: .65; }
.juuceworld-auth .auth-submit { margin-top: 25px; }
.juuceworld-auth .auth-account-link { margin: 23px 0 0; color: var(--auth-muted); font-size: 12px; text-align: center; }
.juuceworld-auth .auth-social-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: #98a1ad; font-size: 11px; text-align: center; }
.juuceworld-auth .auth-social-title::before, .juuceworld-auth .auth-social-title::after { flex: 1; height: 1px; background: #c4c8ce30; content: ""; }
.juuceworld-auth .auth-social { display: flex; justify-content: center; gap: 13px; padding: 0; margin: 0; list-style: none; }
.juuceworld-auth .auth-social a { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #737a8366; border-radius: 50%; color: #ccd1d8; background: #14171a70; }
.juuceworld-auth .auth-social a:hover { color: var(--auth-green); border-color: var(--auth-green); }
.juuceworld-auth .auth-social svg { width: 17px; height: 17px; fill: currentColor; }
.juuceworld-auth .auth-footer { margin-top: auto; padding: 32px 8px 0; color: #a2abb6; font-size: 11px; line-height: 1.8; text-align: center; }
.juuceworld-auth .auth-footer p { margin: 0 0 4px; }
.juuceworld-auth .auth-footer nav { display: flex; justify-content: center; gap: 12px; }
.juuceworld-auth .auth-footer a { color: #c2c9d2; }
.juuceworld-auth .auth-messages:empty { display: none; }
.juuceworld-auth .alert { position: relative; margin: 0 0 18px; padding: 14px 30px 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.juuceworld-auth .alert-danger { border-color: #944d50; background: #45282a; color: #ffd4d4; }
.juuceworld-auth .alert-success { border-color: #458559; background: #204f30; color: #dbfbe3; }
.juuceworld-auth .alert .close { position: absolute; top: 7px; right: 10px; border: 0; color: inherit; background: transparent; font-size: 20px; }
.juuceworld-auth .errors, .juuceworld-auth .text-red, .juuceworld-auth .text-danger { margin-top: 5px; padding: 0 8px; color: #ffb4b4 !important; font-size: 12px; }
.juuceworld-auth .check-strength { display: flex; gap: 4px; margin: 4px 0; }
.juuceworld-auth .check-strength > div { flex: 1; height: 4px; border-radius: 3px; background: #4c545e; }
.juuceworld-auth .check-strength > div.is-filled { background: var(--auth-green); }
.juuceworld-auth #textpassword { color: var(--auth-muted); font-size: 11px; }
.juuceworld-auth #loader { background: #121416; }
.juuceworld-auth a:focus-visible, .juuceworld-auth button:focus-visible, .juuceworld-auth [role="button"]:focus-visible, .juuceworld-auth .form-check-input:focus-visible { outline: 2px solid var(--auth-green) !important; outline-offset: 4px; }
@media (max-width: 420px) {
    .juuceworld-auth #appCapsule.auth-shell { padding: 42px 16px 24px; }
    .juuceworld-auth .appHeader.auth-header { margin-bottom: 24px; padding: 0 10px; }
    .juuceworld-auth .auth-logo img { width: 174px; }
    .juuceworld-auth .auth-language { width: 42px; height: 42px; flex-basis: 42px; }
    .juuceworld-auth .auth-card { border-radius: 32px; }
    .juuceworld-auth .auth-form-content { padding: 24px 20px; }
    .juuceworld-auth .form-control, .juuceworld-auth .form-select { font-size: 13px; padding-left: 17px; }
    .juuceworld-auth h1, .juuceworld-auth h2 { font-size: 24px; }
    .juuceworld-auth .auth-options { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .juuceworld-auth *, .juuceworld-auth *::before, .juuceworld-auth *::after { animation: none !important; transition: none !important; }
}

.juuceworld-auth .text-primary { color: #72e792 !important; }

.juuceworld-auth .form-check .form-check-input { display: block; }
.juuceworld-auth .auth-terms { flex-wrap: nowrap; }

body.juuceworld-auth { height: auto; }
