.fc-auth-shell {
    --fc-auth-text: #272129;
    --fc-auth-muted: #635b65;
    --fc-auth-accent: #a9252c;
    --fc-auth-line: #d6cfd5;
    box-sizing: border-box;
    background: #f8f5f3;
    color: var(--fc-auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
    padding: clamp(24px, 6vw, 60px) 16px;
}
.fc-auth-shell *,
.fc-auth-shell *::before,
.fc-auth-shell *::after { box-sizing: border-box; }
.fc-auth-shell--mobile { min-height: calc(100vh - 45px); padding-bottom: 74px; }
.fc-auth-card {
    width: min(100%, 470px);
    margin-inline: auto;
    padding: clamp(22px, 5vw, 36px);
    background: #fff;
    border: 1px solid #e7e0e4;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(45, 24, 33, .07);
}
.fc-auth-title {
    margin: 0 0 22px;
    color: var(--fc-auth-text);
    font-size: clamp(25px, 5vw, 30px);
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 800;
}
.fc-auth-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 10px;
}
.fc-auth-providers a,
.fc-auth-otp {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--fc-auth-line);
    border-radius: 9px;
    background: #fff;
    color: var(--fc-auth-text);
    padding: 8px 12px;
    min-height: 46px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.fc-auth-providers a:hover,
.fc-auth-otp:enabled:hover { border-color: var(--fc-auth-accent); background: #fff7f7; }
.fc-auth-otp:disabled { cursor: wait; opacity: .72; }
.fc-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--fc-auth-muted);
    font-size: 13px;
}
.fc-auth-divider::before,
.fc-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--fc-auth-line); }
.fc-auth-form { margin: 0; }
.fc-auth-row { margin: 0 0 14px; }
.fc-auth-label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}
.fc-auth-optional { color: var(--fc-auth-muted); font-weight: 400; }
.fc-auth-form .fc-auth-input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--fc-auth-line);
    border-radius: 9px;
    background: #fff;
    color: var(--fc-auth-text);
    font-size: 16px;
    line-height: 1.3;
}
.fc-auth-form .fc-auth-input:focus {
    outline: 2px solid var(--fc-auth-accent);
    outline-offset: 1px;
}
.fc-auth-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}
.fc-auth-password { position: relative; }
.fc-auth-form .fc-auth-password .fc-auth-input { padding-right: 70px; }
.fc-auth-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 62px;
    height: 44px;
    color: var(--fc-auth-accent);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.fc-auth-captcha {
    display: block;
    width: 104px;
    height: 46px;
    object-fit: contain;
    background: #f6f3f4;
    border: 1px solid var(--fc-auth-line);
    border-radius: 9px;
    cursor: pointer;
}
.fc-auth-row .error,
.fc-auth-terms .error { display: block; color: var(--fc-auth-accent); font-size: 13px; }
.fc-auth-help { margin: -4px 0 14px; text-align: right; font-size: 14px; }
.fc-auth-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    margin: 9px 0 17px;
    font-size: 14px;
}
.fc-auth-terms input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--fc-auth-accent); }
.fc-auth-card .fc-auth-primary {
    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--fc-auth-accent);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    cursor: pointer;
}
.fc-auth-card .fc-auth-primary:hover { background: #8c1821; }
.fc-auth-help a,
.fc-auth-switch a,
.fc-auth-terms a { color: var(--fc-auth-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fc-auth-switch { margin: 18px 0 0; text-align: center; color: var(--fc-auth-muted); font-size: 14px; }
.fc-auth-card :is(a, button, input, img[role="button"]):focus-visible {
    outline: 2px solid var(--fc-auth-accent);
    outline-offset: 3px;
}
@media (max-width: 400px) {
    .fc-auth-shell { padding-inline: 12px; }
    .fc-auth-card { padding-inline: 19px; border-radius: 14px; }
    .fc-auth-providers { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fc-auth-providers a { padding-inline: 4px; }
}

.fc-auth-providers .fc-auth-brand { gap: 9px; min-height: 48px; white-space: nowrap; }
.fc-auth-providers .fc-auth-brand:hover { background: #f6f8fb; border-color: #9aa7b6; }
.fc-auth-providers .fc-auth-brand-google { font-family: Roboto, Arial, sans-serif; color: #1f1f1f; }
.fc-auth-brand-google .fc-auth-brand-icon { width: 20px; height: 20px; }
.fc-auth-brand-line .fc-auth-brand-icon { width: 40px; height: 40px; }
.fc-auth-providers .fc-auth-brand-line { padding: 3px 10px; border-color: #cce7d7; }
.fc-auth-providers .fc-auth-brand:focus-visible { outline: 2px solid #3667bd; outline-offset: 2px; }
