.jf-auth {
    --jf-auth-bg: #f6f2ea;
    --jf-auth-surface: #fffaf2;
    --jf-auth-ink: #252720;
    --jf-auth-muted: #706d61;
    --jf-auth-border: rgba(37, 39, 32, 0.14);
    --jf-auth-primary: #354432;
    --jf-auth-primary-hover: #273225;
    --jf-auth-gold: #b99a5f;
    --jf-auth-error: #8f2f24;
    --jf-auth-success: #3e6743;


    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(185, 154, 95, 0.16), transparent 34%), #fffaf2;
}


.jf-auth__brandmark {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(53, 68, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jf-auth__brandmark span {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--color-primary);
}

.jf-auth__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.jf-auth h3 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.jf-auth h4 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.jf-auth__intro,
.jf-auth__code-header p {
    margin: 12px 0 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--color-muted);
}

.jf-auth__notice {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    background: rgba(53, 68, 50, 0.08);
    color: var(--color-primary);
}

.jf-auth__notice[data-type="error"] {
    background: rgba(143, 47, 36, 0.08);
    color: var(--jf-auth-error);
}

.jf-auth__notice[data-type="success"] {
    background: rgba(62, 103, 67, 0.1);
    color: var(--jf-auth-success);
}

.jf-auth__choice-grid {
}

.jf-auth__choice {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--color-primary);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.jf-auth__choice:hover,
.jf-auth__choice:focus-visible {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}

.jf-auth__choice span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.jf-auth__choice small {
}

.jf-auth__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0;
    cursor: pointer;
}

.jf-auth__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--jf-auth-primary);
}

.jf-auth__link,
.jf-auth__back {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.jf-auth__link:hover,
.jf-auth__back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.jf-auth__back {
    margin-bottom: 18px;
}

.jf-auth__footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}


.jf-auth__grid .uk-first-column + .uk-first-column {
    margin-top: 10px;
}

.jf-auth__code-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--jf-auth-border);
}

.jf-auth__code-header {
    margin-bottom: 2px;
}

.jf-auth-code-input {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.jf-auth__label span {
    font-size: 12px;
    font-weight: 400;
}

.jf-auth__field-message {
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.4;
}

.jf-auth__field-message[data-type="error"] {
    color: var(--jf-auth-error);
}

.jf-auth__field-message[data-type="success"] {
    color: var(--jf-auth-success);
}

.jf-auth__field--error .uk-input {
    border-color: var(--jf-auth-error);
}

.jf-auth__field--success .uk-input {
    border-color: var(--jf-auth-success);
}

.jf-auth-code-input input {
    height: 58px;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 14px;
}

.jf-auth-code-input input:focus {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .jf-auth-code-input {
        gap: 8px;
    }

    .jf-auth-code-input input {
        height: 52px;
        font-size: 1.25rem;
    }
}