@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --jc-auth-navy-950: #020617;
    --jc-auth-navy-900: #0f172a;
    --jc-auth-blue-700: #1d4ed8;
    --jc-auth-blue-600: #2563eb;
    --jc-auth-blue-500: #3b82f6;
    --jc-auth-cyan-400: #22d3ee;
    --jc-auth-slate-700: #334155;
    --jc-auth-slate-400: #94a3b8;
    --jc-auth-slate-200: #e2e8f0;
    --jc-auth-slate-50: #f8fafc;
    --jc-auth-error: #dc2626;
}

.jc-auth-shell,
.jc-auth-shell * {
    box-sizing: border-box;
}

.jc-auth-shell {
    position: fixed;
    inset: 0;
    overflow: auto;
    min-height: 100vh;
    color: #ffffff;
    background:
        radial-gradient(circle at 72% 14%, rgba(37, 99, 235, 0.26), transparent 34%),
        radial-gradient(circle at 12% 86%, rgba(34, 211, 238, 0.14), transparent 32%),
        linear-gradient(135deg, #020617 0%, #07122d 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.jc-auth-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: var(--jc-auth-pattern);
    background-repeat: repeat;
    background-size: 260px 260px;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 68%);
    mask-image: linear-gradient(115deg, #000 0%, transparent 68%);
}

.jc-auth-page {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    min-height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(420px, 0.96fr);
    align-items: stretch;
    padding: 28px 18px;
}

.jc-auth-frame {
    display: contents;
}

.jc-auth-brand-panel,
.jc-auth-form-panel {
    min-height: min(680px, calc(100dvh - 56px));
}

.jc-auth--login .jc-auth-brand-panel,
.jc-auth--login .jc-auth-form-panel {
    height: min(680px, calc(100dvh - 56px));
}

.jc-auth-brand-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-right: 0;
    border-radius: 18px 0 0 18px;
    padding: 52px 50px 38px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(140deg, rgba(5, 15, 42, 0.96), rgba(2, 6, 23, 0.98)),
        #020617;
    box-shadow: 0 30px 80px -42px rgba(15, 23, 42, 0.92);
}

.jc-auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--jc-auth-pattern);
    background-repeat: repeat;
    opacity: 0.18;
}

.jc-auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    left: 16%;
    top: 30%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.06) 42%, transparent 70%);
    filter: blur(8px);
}

.jc-auth-brand-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.jc-auth-logo-light {
    width: 164px;
    height: auto;
    display: block;
}

.jc-auth-copy {
    margin-top: 56px;
    max-width: 460px;
}

.jc-auth-eyebrow {
    margin: 0 0 16px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jc-auth-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 40px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: 0;
}

.jc-auth-title span {
    color: var(--jc-auth-blue-500);
}

.jc-auth-description {
    margin: 20px 0 0;
    max-width: 430px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.72;
}

.jc-auth-hero {
    position: relative;
    z-index: 1;
    margin: auto -12px 28px;
    display: flex;
    justify-content: center;
}

.jc-auth-hero img {
    width: min(100%, 520px);
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 22px 42px rgba(37, 99, 235, 0.30));
}

.jc-auth-trust-row {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jc-auth-trust-item {
    min-width: 0;
}

.jc-auth-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.36);
    box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.08);
}

.jc-auth-trust-icon img {
    width: 22px;
    height: 22px;
}

.jc-auth-trust-title {
    margin: 12px 0 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.jc-auth-trust-text {
    margin: 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.55;
}

.jc-auth-copyright {
    position: relative;
    z-index: 1;
    margin: 34px 0 0;
    color: #cbd5e1;
    font-size: 12px;
}

.jc-auth-form-panel {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    padding: 42px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 78% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    box-shadow: 0 30px 80px -42px rgba(15, 23, 42, 0.42);
}

.jc-auth-form-wrap {
    width: 100%;
    max-width: 430px;
}

.jc-auth-form-head {
    text-align: center;
    margin-bottom: 24px;
}

.jc-auth-mark {
    width: 54px;
    height: 54px;
    display: block;
    margin: 0 auto 12px;
}

.jc-auth-heading {
    margin: 0;
    color: #080e24;
    font-family: 'Plus Jakarta Sans', Inter, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.jc-auth-subheading {
    margin: 10px auto 0;
    max-width: 330px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.jc-auth-alert {
    margin: 0 0 18px;
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #172554;
}

.jc-auth-alert img {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.jc-auth-alert strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}

.jc-auth-alert span {
    display: block;
    margin-top: 3px;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.45;
}

.jc-auth-field {
    margin-bottom: 14px;
}

.jc-auth-label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.jc-auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.jc-auth-input-icon,
.jc-auth-select-icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    opacity: 0.72;
    pointer-events: none;
}

.jc-auth-input,
.jc-auth-select {
    width: 100%;
    height: 52px;
    border: 1px solid #dbe4f0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 52px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.jc-auth-select-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.jc-auth-select-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.jc-auth-select-shell:focus-within::after {
    border-color: var(--jc-auth-blue-600);
}

.jc-auth-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    padding-left: 18px;
    padding-right: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: none !important;
    background-repeat: no-repeat;
}

.jc-auth-select::-ms-expand {
    display: none;
}

.jc-auth-select option {
    background: #ffffff;
    color: #0f172a;
}

.jc-auth-input::placeholder {
    color: #64748b;
}

.jc-auth-input:focus,
.jc-auth-select:focus {
    border-color: var(--jc-auth-blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
    background-color: #ffffff;
}

.jc-auth-password-toggle {
    position: absolute;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.jc-auth-password-toggle:hover {
    background: #eff6ff;
}

.jc-auth-password-toggle img {
    width: 20px;
    height: 20px;
}

.jc-auth-error {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 7px 0 0;
    color: var(--jc-auth-error);
    font-size: 12.5px;
    line-height: 1.45;
}

.jc-auth-error img {
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.jc-auth-helper {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.45;
}

.jc-auth-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 16px;
}

.jc-auth-forgot,
.jc-auth-alt-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--jc-auth-blue-600);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.jc-auth-forgot:hover,
.jc-auth-alt-link:hover {
    text-decoration: underline;
}

.jc-auth-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #2684ff 0%, #075ef5 54%, #0649d5 100%);
    box-shadow: 0 18px 34px -18px rgba(37, 99, 235, 0.95);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.jc-auth-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 20px 38px -18px rgba(37, 99, 235, 1);
}

.jc-auth-button:active {
    transform: translateY(1px);
}

.jc-auth-button[disabled] {
    cursor: wait;
    opacity: 0.8;
}

.jc-auth-button img {
    width: 19px;
    height: 19px;
}

.jc-auth-switch {
    margin: 20px 0 0;
    color: #475569;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
}

.jc-auth-security-card {
    margin: 28px 0 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px -28px rgba(15, 23, 42, 0.35);
}

.jc-auth-security-card img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.jc-auth-security-card strong {
    display: block;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.35;
}

.jc-auth-security-card span {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.jc-auth-version {
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.jc-auth-version img {
    width: 18px;
    height: 18px;
    opacity: 0.78;
}

.jc-auth--register .jc-auth-form-panel {
    align-items: flex-start;
    overflow-y: auto;
    padding: 22px 42px;
}

.jc-auth--register .jc-auth-form-head {
    margin-bottom: 12px;
}

.jc-auth--register .jc-auth-heading {
    font-size: 24px;
}

.jc-auth--register .jc-auth-subheading {
    margin-top: 6px;
    line-height: 1.4;
}

.jc-auth--register .jc-auth-field {
    margin-bottom: 8px;
}

.jc-auth--register .jc-auth-security-card {
    margin-top: 12px;
    padding: 11px 14px;
}

.jc-auth--login .jc-auth-form-panel {
    padding-top: 34px;
    padding-bottom: 34px;
}

.jc-auth--login .jc-auth-form-head {
    margin-bottom: 20px;
}

.jc-auth--register .jc-auth-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
}

.jc-auth--register .jc-auth-label {
    margin-bottom: 6px;
}

.jc-auth--register .jc-auth-input,
.jc-auth--register .jc-auth-select {
    height: 46px;
}

.jc-auth--register .jc-auth-button {
    height: 50px;
}

.jc-auth--register .jc-auth-switch {
    margin-top: 10px;
}

.jc-auth--register .jc-auth-version {
    margin-top: 12px;
    padding-top: 10px;
}

@media (max-height: 820px) and (min-width: 961px) {
    .jc-auth-page {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .jc-auth--login .jc-auth-brand-panel,
    .jc-auth--login .jc-auth-form-panel {
        min-height: 0;
        height: calc(100dvh - 40px);
    }

    .jc-auth-brand-panel {
        padding: 40px 44px 30px;
    }

    .jc-auth-logo-light {
        width: 148px;
    }

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

    .jc-auth-eyebrow {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .jc-auth-title {
        font-size: 34px;
        line-height: 1.14;
    }

    .jc-auth-description {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    .jc-auth-hero {
        margin-bottom: 20px;
    }

    .jc-auth-hero img {
        max-height: 210px;
    }

    .jc-auth-trust-row {
        gap: 14px;
    }

    .jc-auth-trust-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .jc-auth-trust-icon img {
        width: 19px;
        height: 19px;
    }

    .jc-auth-trust-title {
        margin-top: 9px;
        font-size: 12.5px;
    }

    .jc-auth-trust-text {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .jc-auth-copyright {
        margin-top: 20px;
    }

    .jc-auth--login .jc-auth-form-panel {
        padding: 28px 44px;
    }

    .jc-auth--login .jc-auth-mark {
        width: 48px;
        height: 48px;
        margin-bottom: 9px;
    }

    .jc-auth--login .jc-auth-heading {
        font-size: 26px;
    }

    .jc-auth--login .jc-auth-subheading {
        margin-top: 8px;
        font-size: 13.5px;
        line-height: 1.45;
    }

    .jc-auth--login .jc-auth-field {
        margin-bottom: 12px;
    }

    .jc-auth--login .jc-auth-input {
        height: 50px;
    }

    .jc-auth--login .jc-auth-row {
        margin-bottom: 14px;
    }

    .jc-auth--login .jc-auth-security-card {
        margin-top: 20px;
        padding: 13px 16px;
    }

    .jc-auth--login .jc-auth-version {
        margin-top: 18px;
        margin-bottom: 8px;
        padding-top: 14px;
    }

    .jc-auth--register .jc-auth-form-panel {
        padding: 16px 38px;
    }

    .jc-auth--register .jc-auth-form-head {
        margin-bottom: 10px;
    }

    .jc-auth--register .jc-auth-mark {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .jc-auth--register .jc-auth-heading {
        font-size: 23px;
    }

    .jc-auth--register .jc-auth-subheading {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.35;
    }

    .jc-auth--register .jc-auth-field {
        margin-bottom: 6px;
    }

    .jc-auth--register .jc-auth-label {
        margin-bottom: 5px;
        font-size: 12.5px;
    }

    .jc-auth--register .jc-auth-input,
    .jc-auth--register .jc-auth-select {
        height: 44px;
    }

    .jc-auth--register .jc-auth-helper,
    .jc-auth--register .jc-auth-error {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.35;
    }

    .jc-auth--register .jc-auth-button {
        height: 48px;
    }

    .jc-auth--register .jc-auth-switch {
        margin-top: 8px;
    }

    .jc-auth--register .jc-auth-security-card {
        margin-top: 10px;
        padding: 10px 12px;
        gap: 12px;
    }

    .jc-auth--register .jc-auth-security-card img {
        width: 34px;
        height: 34px;
    }

    .jc-auth--register .jc-auth-version {
        margin-top: 10px;
        padding-top: 8px;
    }
}

@media (min-width: 961px) {
    .jc-auth--login .jc-auth-mark {
        margin-top: 10px;
    }

    .jc-auth--register .jc-auth-mark {
        margin-top: 6px;
    }
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 960px) {
    .jc-auth-page {
        width: min(100%, 520px);
        display: block;
        padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
    }

    .jc-auth-brand-panel {
        display: none;
    }

    .jc-auth-form-panel {
        min-height: auto;
        height: auto;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 22px;
        padding: 30px 24px 24px;
        background:
            linear-gradient(180deg, rgba(8, 18, 45, 0.92), rgba(2, 6, 23, 0.96)),
            #020617;
        color: #ffffff;
        box-shadow: 0 22px 70px -42px rgba(37, 99, 235, 0.75);
    }

    .jc-auth-form-wrap {
        max-width: 100%;
    }

    .jc-auth-mark {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .jc-auth-form-head {
        margin-bottom: 22px;
    }

    .jc-auth-input,
    .jc-auth-select {
        height: 52px;
    }

    .jc-auth-security-card {
        margin-top: 20px;
        padding: 14px 16px;
    }

    .jc-auth-version {
        margin-top: 22px;
        padding-top: 16px;
    }

    .jc-auth--register .jc-auth-form-panel {
        padding-top: 26px;
        padding-bottom: 24px;
    }

    .jc-auth--register .jc-auth-form-head {
        margin-bottom: 16px;
    }

    .jc-auth--register .jc-auth-field {
        margin-bottom: 12px;
    }

    .jc-auth--register .jc-auth-input,
    .jc-auth--register .jc-auth-select {
        height: 50px;
    }

    .jc-auth-heading,
    .jc-auth-label {
        color: #ffffff;
    }

    .jc-auth-subheading,
    .jc-auth-switch,
    .jc-auth-helper {
        color: #cbd5e1;
    }

    .jc-auth-input,
    .jc-auth-select {
        border-color: rgba(148, 163, 184, 0.22);
        background-color: rgba(15, 23, 42, 0.68);
        color: #ffffff;
    }

    .jc-auth-input::placeholder {
        color: #94a3b8;
    }

    .jc-auth-input:focus,
    .jc-auth-select:focus {
        border-color: rgba(59, 130, 246, 0.84);
        background-color: rgba(15, 23, 42, 0.86);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
    }

    .jc-auth-select-shell::after {
        border-color: #cbd5e1;
    }

    .jc-auth-select-shell:focus-within::after {
        border-color: #dbeafe;
    }

    .jc-auth-select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background-color: rgba(15, 23, 42, 0.68);
        background-image: none !important;
        color: #ffffff;
        padding-right: 48px;
    }

    .jc-auth-select:focus {
        background-color: rgba(15, 23, 42, 0.86);
        background-image: none !important;
    }

    .jc-auth-select option {
        background: #0f172a;
        color: #ffffff;
    }

    .jc-auth-password-toggle:hover {
        background: rgba(37, 99, 235, 0.18);
    }

    .jc-auth-security-card,
    .jc-auth-alert {
        border-color: rgba(148, 163, 184, 0.2);
        background: rgba(15, 23, 42, 0.72);
        color: #ffffff;
    }

    .jc-auth-alert span,
    .jc-auth-security-card span,
    .jc-auth-security-card strong {
        color: #e2e8f0;
    }

    .jc-auth-version {
        border-top-color: rgba(148, 163, 184, 0.18);
        color: #cbd5e1;
    }
}

@media (max-width: 420px) {
    .jc-auth-page {
        padding-left: 0;
        padding-right: 0;
    }

    .jc-auth-form-panel {
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        padding: 30px 22px 24px;
        justify-content: flex-start;
    }

    .jc-auth-mark {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .jc-auth-heading {
        font-size: 24px;
    }

    .jc-auth-subheading {
        font-size: 13.5px;
    }

    .jc-auth-form-head {
        margin-bottom: 20px;
    }

    .jc-auth--register .jc-auth-form-head {
        margin-bottom: 16px;
    }
}
