.jg-auth {
    min-height: 100vh;
    padding: 0 !important;
    background: var(--jg-canvas);
    color: var(--jg-text);
    font-family: var(--jg-font);
}

.jg-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

@media (min-width: 992px) {
    .jg-auth-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }
}

.jg-auth-brand {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 48px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(96, 165, 250, .32), transparent 60%),
        radial-gradient(700px 500px at 5% 95%, rgba(16, 185, 129, .22), transparent 55%),
        linear-gradient(135deg, #0b246e 0%, #1e40af 55%, #2563eb 100%);
    color: #fff;
}

@media (min-width: 992px) {
    .jg-auth-brand {
        display: flex;
    }
}

.jg-auth-brand::before,
.jg-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    pointer-events: none;
}

.jg-auth-brand::before {
    width: 420px;
    height: 420px;
    right: -160px;
    top: -120px;
}

.jg-auth-brand::after {
    width: 280px;
    height: 280px;
    left: -110px;
    bottom: -90px;
}

.jg-auth-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.jg-auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.jg-auth-brand-logo span:first-child {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.jg-auth-brand-logo strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.jg-auth-brand-logo small {
    display: block;
    font-size: .6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .72);
}

.jg-auth-brand-body {
    padding: 40px 0;
}

.jg-auth-brand-body h1 {
    margin: 14px 0 14px;
    font-size: 2.25rem;
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    max-width: 520px;
}

.jg-auth-brand-body p {
    margin: 0;
    max-width: 480px;
    color: rgba(255, 255, 255, .78);
    font-size: .9375rem;
    line-height: 1.65;
}

.jg-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #dbeafe;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.jg-auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.jg-auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}

.jg-auth-feature .material-symbols-outlined {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    font-size: 20px;
    flex: 0 0 auto;
}

.jg-auth-feature strong {
    display: block;
    font-size: .8125rem;
    font-weight: 700;
}

.jg-auth-feature small {
    display: block;
    font-size: .6875rem;
    color: rgba(255, 255, 255, .68);
}

.jg-auth-brand-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .7);
    font-size: .6875rem;
}

.jg-auth-brand-foot span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jg-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(600px 320px at 100% 0%, rgba(37, 99, 235, .07), transparent 65%),
        var(--jg-canvas);
}

@media (min-width: 992px) {
    .jg-auth-main {
        padding: 48px;
    }
}

.jg-auth-card {
    width: 100%;
    max-width: 420px;
}

.jg-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.jg-auth-mobile-brand span:first-child {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--jg-primary);
    color: #fff;
    box-shadow: var(--jg-shadow-sm);
}

.jg-auth-mobile-brand strong {
    display: block;
    font-size: .9375rem;
    font-weight: 800;
    color: var(--jg-primary);
    line-height: 1.2;
}

.jg-auth-mobile-brand small {
    display: block;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--jg-text-muted);
}

@media (min-width: 992px) {
    .jg-auth-mobile-brand {
        display: none;
    }
}

.jg-auth-heading {
    margin-bottom: 24px;
}

.jg-auth-heading h2 {
    margin: 6px 0 6px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--jg-text);
}

.jg-auth-heading p {
    margin: 0;
    color: var(--jg-text-secondary);
    font-size: .875rem;
    line-height: 1.5;
}

.jg-auth-card .alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 12px 14px;
    font-size: .75rem;
}

.jg-auth-card .alert .material-symbols-outlined {
    font-size: 18px;
    flex: 0 0 auto;
}

.jg-auth-card .form-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--jg-text-secondary);
    margin-bottom: 6px;
}

.jg-input-wrap {
    position: relative;
}

.jg-input-wrap > .material-symbols-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--jg-text-muted);
    pointer-events: none;
}

.jg-auth-card .form-control {
    min-height: 48px;
    padding: 11px 14px 11px 46px;
    border-radius: 10px;
    border: 1px solid var(--jg-border-strong);
    background: #fff;
    color: var(--jg-text);
    font-size: .875rem;
}

.jg-auth-card .form-control:focus {
    border-color: var(--jg-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.jg-auth-card .form-control::placeholder {
    color: var(--jg-text-muted);
}

.jg-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--jg-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jg-password-toggle:hover {
    background: var(--jg-muted);
    color: var(--jg-primary);
}

.jg-auth-card .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-color: var(--jg-border-strong);
}

.jg-auth-card .form-check-label {
    font-size: .75rem;
    color: var(--jg-text-secondary);
    padding-left: 4px;
}

.jg-auth-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 800;
}

.jg-auth-submit .material-symbols-outlined {
    font-size: 18px;
}

.jg-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--jg-primary-soft);
    border: 1px solid var(--jg-primary-fixed);
    color: #1e3a8a;
    font-size: .6875rem;
    line-height: 1.45;
}

.jg-auth-note .material-symbols-outlined {
    font-size: 16px;
    flex: 0 0 auto;
}

.jg-auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--jg-border);
}

.jg-auth-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--jg-text-secondary);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
}

.jg-auth-footer a:hover {
    color: var(--jg-primary);
}

.jg-auth-footer span {
    font-size: .625rem;
    color: var(--jg-text-muted);
}
