.ys-auth[data-ys-auth] {
    --ys-auth-ink: #263327;
    --ys-auth-muted: #626b5e;
    --ys-auth-primary: #526341;
    --ys-auth-primary-hover: #405232;
    --ys-auth-border: #dfe5d8;
    --ys-auth-surface: #fffefb;
    --ys-auth-soft: #f3f5ee;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin: 32px auto;
    padding: 36px 40px 30px;
    border: 1px solid var(--ys-auth-border);
    border-radius: 20px;
    background: var(--ys-auth-surface);
    color: var(--ys-auth-ink);
    box-shadow: 0 12px 40px rgb(39 55 30 / 5%);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
    text-transform: none;
    letter-spacing: .02em;
    isolation: isolate;
}

.ys-auth[data-ys-auth] *,
.ys-auth[data-ys-auth] *::before,
.ys-auth[data-ys-auth] *::after {
    box-sizing: border-box;
}

.ys-auth[data-ys-auth] [hidden] {
    display: none !important;
}

.ys-auth[data-ys-auth] .ys-auth__header {
    margin: 0 0 26px;
    text-align: center;
}

.ys-auth[data-ys-auth] .ys-auth__eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--ys-auth-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.5;
}

.ys-auth[data-ys-auth] .ys-auth__title {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ys-auth-ink);
    font-family: inherit;
    font-size: clamp(25px, 5vw, 29px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .06em;
}

.ys-auth[data-ys-auth] .ys-auth__intro {
    margin: 10px 0 0;
    color: var(--ys-auth-muted);
    font-size: 14px;
    line-height: 1.8;
}

.ys-auth[data-ys-auth] .ys-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 26px;
    padding: 4px;
    border: 1px solid #e8ebdf;
    border-radius: 12px;
    background: var(--ys-auth-soft);
}

.ys-auth[data-ys-auth] [data-ys-tab] {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ys-auth-muted);
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ys-auth[data-ys-auth] [data-ys-tab]:hover {
    color: var(--ys-auth-primary-hover);
    background: rgb(255 255 255 / 55%);
}

.ys-auth[data-ys-auth] [data-ys-tab][aria-selected="true"] {
    border-color: #e5e9dd;
    background: var(--ys-auth-surface);
    color: var(--ys-auth-primary-hover);
    box-shadow: 0 2px 5px rgb(39 55 30 / 5%);
    font-weight: 600;
}

.ys-auth[data-ys-auth] [data-ys-tab]:disabled {
    cursor: wait;
}

.ys-auth[data-ys-auth] .ys-auth__panel {
    margin: 0;
    padding: 0;
}

.ys-auth[data-ys-auth] [data-ys-form] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ys-auth[data-ys-auth] .ys-auth__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ys-auth[data-ys-auth] .ys-auth__label,
.ys-auth[data-ys-auth] .ys-auth__field > label {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--ys-auth-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.ys-auth[data-ys-auth] .ys-auth__required {
    color: #865743;
    font-weight: 400;
}

.ys-auth[data-ys-auth] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
    appearance: none;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #ccd5c4;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ys-auth-ink);
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ys-auth[data-ys-auth] input::placeholder {
    color: #7a8275;
    opacity: 1;
    font-size: 14px;
}

.ys-auth[data-ys-auth] input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--ys-auth-primary);
    box-shadow: 0 0 0 3px rgb(82 99 65 / 12%);
}

.ys-auth[data-ys-auth] .ys-auth__hint {
    display: block;
    margin: 0;
    color: var(--ys-auth-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

.ys-auth[data-ys-auth] .ys-auth__options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 14px;
    margin: -4px 0;
}

.ys-auth[data-ys-auth] .ys-auth__check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 9px 0;
    color: var(--ys-auth-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    cursor: pointer;
}

.ys-auth[data-ys-auth] input[type="checkbox"] {
    appearance: auto;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    min-height: 0;
    margin: 3px 0 0;
    padding: 0;
    border-radius: 3px;
    accent-color: var(--ys-auth-primary);
    cursor: pointer;
}

.ys-auth[data-ys-auth] a {
    color: var(--ys-auth-primary-hover);
    font: inherit;
    text-decoration-line: underline;
    text-decoration-color: #a7b39a;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    transition: color .18s ease, text-decoration-color .18s ease;
}

.ys-auth[data-ys-auth] a:hover {
    color: #2e4222;
    text-decoration-color: currentcolor;
}

.ys-auth[data-ys-auth] .ys-auth__options > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
}

.ys-auth[data-ys-auth] [data-ys-turnstile] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ys-auth[data-ys-auth] [data-ys-turnstile]:empty {
    display: none;
}

.ys-auth[data-ys-auth] [data-ys-message] {
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    color: var(--ys-auth-muted);
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.8;
}

.ys-auth[data-ys-auth] [data-ys-message]:empty {
    display: none;
}

.ys-auth[data-ys-auth] [data-ys-message][data-state="error"] {
    padding: 10px 12px;
    border: 1px solid #e9d4c8;
    background: #fcf5f0;
    color: #853f29;
}

.ys-auth[data-ys-auth] [data-ys-message][data-state="success"] {
    padding: 10px 12px;
    border: 1px solid #cfdcc5;
    background: #f2f7ed;
    color: #3a522d;
}

.ys-auth[data-ys-auth] .ys-auth__retry {
    appearance: none;
    display: inline;
    width: auto;
    min-height: 32px;
    margin: 0 0 0 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    cursor: pointer;
}

.ys-auth[data-ys-auth] button[type="submit"],
.ys-auth[data-ys-auth] input[type="submit"] {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid var(--ys-auth-primary);
    border-radius: 9px;
    background: var(--ys-auth-primary);
    color: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .1em;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

.ys-auth[data-ys-auth] button[type="submit"]:hover:not(:disabled),
.ys-auth[data-ys-auth] input[type="submit"]:hover:not(:disabled) {
    border-color: var(--ys-auth-primary-hover);
    background: var(--ys-auth-primary-hover);
    color: #fff;
}

.ys-auth[data-ys-auth] button[type="submit"]:disabled,
.ys-auth[data-ys-auth] input[type="submit"]:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.ys-auth[data-ys-auth] :is(button, a, input[type="checkbox"]):focus-visible {
    outline: 2px solid var(--ys-auth-primary-hover);
    outline-offset: 4px;
}

.ys-auth[data-ys-auth] .ys-auth__footer {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--ys-auth-border);
    color: var(--ys-auth-muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.ys-auth[data-ys-auth] .ys-auth__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

@media (max-width: 540px) {
    .ys-auth[data-ys-auth] {
        margin-block: 20px;
        padding: 28px 24px 24px;
        border-radius: 16px;
    }
}

@media (max-width: 360px) {
    .ys-auth[data-ys-auth] {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ys-auth[data-ys-auth] *,
    .ys-auth[data-ys-auth] *::before,
    .ys-auth[data-ys-auth] *::after {
        scroll-behavior: auto;
        transition: none;
        animation: none;
    }
}
