/* Sunyung sign-in / sign-up (D-034, third pass, user 2026-10-21 with an Intercom reference): a large, calm window.
   Left: the form in a centred column (Google first, then email). Right: a warm neutral panel with the factory's
   certificates as quiet type. One fixed frame for every step; steps crossfade; a thin progress line on top.
   Phones: the form only, as a fixed-height bottom sheet. */
.sy-auth-overlay, .sy-auth-inline {
	--sy-ink: #1c2840;
	--sy-muted: #5e6b7e;
	--sy-line: #dfe5ea;
	--sy-soft: #f3f6f8;
	--sy-accent: var(--sy-navy, #283951);
	--sy-brass: #b8914a;
	--sy-warm: #efede9;
	--sy-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Frame */
.sy-auth-overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; background: rgba(12, 16, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: sy-fade .25s ease; }
.sy-auth-overlay[hidden] { display: none; }
.sy-auth-dialog { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(1480px, calc(100vw - 48px)); height: min(840px, calc(100vh - 48px)); overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 50px 120px -40px rgba(5, 10, 20, .55); animation: sy-rise .4s var(--sy-ease); }
.sy-auth-main { position: relative; display: flex; flex-direction: column; height: 100%; padding: 64px clamp(32px, 6vw, 96px); box-sizing: border-box; overflow-y: auto; scrollbar-width: thin; }
.sy-auth-main > .sy-auth { width: 100%; max-width: 480px; margin: auto; }

/* Trust panel */
.sy-auth-aside { position: relative; display: grid; place-items: center; background: var(--sy-warm); color: var(--sy-ink); }
.sy-auth-aside__body { width: min(520px, 86%); text-align: center; }
.sy-auth-aside__kicker { margin: 0 0 44px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6b6a66; }
.sy-auth-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 28px; margin: 0; padding: 0; list-style: none; }
.sy-auth-badges li { font-size: clamp(17px, 1.45vw, 23px); font-weight: 600; letter-spacing: .02em; color: #9a9893; white-space: nowrap; }
.sy-auth-aside__note { margin: 56px 0 0; font-size: 15px; color: #6b6a66; }

.sy-auth-close { position: absolute; top: 22px; right: 22px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0 !important; border-radius: 50%; background: transparent; color: var(--sy-ink); box-shadow: none !important; cursor: pointer; transition: background .2s; }
.sy-auth-close:hover { background: rgba(0, 0, 0, .06); }
.sy-auth-close:focus-visible { outline: 2px solid var(--sy-accent); outline-offset: 2px; }

/* Progress line (top of the form panel) */
.sy-auth-progress { position: absolute; top: 0; left: 0; height: 3px; width: 33%; background: var(--sy-brass); transition: width .5s var(--sy-ease); }
.sy-auth[data-step-now="password"] .sy-auth-progress, .sy-auth[data-step-now="signup"] .sy-auth-progress { width: 66%; }
.sy-auth[data-step-now="code"] .sy-auth-progress { width: 88%; }
.sy-auth[data-step-now="done"] .sy-auth-progress { width: 100%; }
.sy-auth-inline .sy-auth-progress { display: none; }

/* Inline (the /login/ page) */
.sy-auth-inline { max-width: 520px !important; margin: 32px auto !important; padding: 48px 40px; border: 1px solid var(--sy-line); border-radius: 4px; background: #fff; }

/* Form */
.sy-auth { color: var(--sy-ink); }
.sy-auth-step { display: grid; gap: 18px; }
.sy-auth-step[hidden] { display: none; }
.sy-auth-dialog .sy-auth-step:not([hidden]) { animation: sy-step .38s var(--sy-ease); }
.sy-auth-kicker { margin: 0 0 -8px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sy-brass); text-align: center; }
.sy-auth-kicker[hidden] { display: none; }
.sy-auth .sy-auth-title { margin: 0; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.15; font-weight: 400; letter-spacing: -.02em; text-transform: none; text-align: center; color: var(--sy-ink); }
.sy-auth-lead { margin: -4px 0 18px; font-size: 16px; line-height: 1.55; text-align: center; color: var(--sy-muted); }
.sy-auth-alt, .sy-auth-fine { margin: 0; text-align: center; font-size: 13px; color: var(--sy-muted); }

.sy-social { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border: 1px solid var(--sy-line); border-radius: 999px; background: #fff; color: var(--sy-ink); font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.sy-social:hover { border-color: #b9c3cd; background: #fafbfc; color: var(--sy-ink); }
.sy-social:focus-visible { outline: 2px solid var(--sy-accent); outline-offset: 2px; }
.sy-auth-or { display: flex; align-items: center; gap: 18px; margin: 4px 0; font-size: 14px; color: var(--sy-muted); }
.sy-auth-or::before, .sy-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--sy-line); }

.sy-auth-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--sy-muted); }
.sy-auth-perks li { position: relative; padding-left: 16px; }
.sy-auth-perks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 4px; border-left: 1.4px solid var(--sy-brass); border-bottom: 1.4px solid var(--sy-brass); transform: rotate(-45deg); }

.sy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sy-field { display: grid; grid-template-rows: auto auto; align-content: start; gap: 8px; font-size: 14px; font-weight: 500; color: var(--sy-ink); }
.sy-field > span:first-child { line-height: 1.4; }
.sy-field small { font-weight: 400; color: var(--sy-muted); }
.sy-field input, .sy-field select { width: 100%; height: 56px; margin: 0; padding: 0 22px; border: 1px solid var(--sy-line); border-radius: 999px; background: #fff; font-size: 16px; font-weight: 400; color: var(--sy-ink); transition: border-color .2s, box-shadow .2s; }
.sy-field select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235e6b7e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 20px center; }
.sy-field input::placeholder { color: #9aa5b3; }
.sy-field input:focus, .sy-field select:focus { outline: none; border-color: var(--sy-accent); box-shadow: 0 0 0 3px rgba(40, 57, 81, .1); }
.sy-field.is-invalid input, .sy-field.is-invalid select { border-color: #b4412f; }
.sy-password { position: relative; display: block; }
.sy-password input { padding-right: 72px; }
.sy-password .sy-link { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }
.sy-code { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-variant-numeric: tabular-nums; }
.sy-auth-remember { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--sy-muted); }
.sy-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .2s, opacity .2s; }
.sy-btn-primary { background: #1f2531; color: #fff; }
.sy-btn-primary:hover { background: #0f141d; }
.sy-btn:focus-visible { outline: 2px solid var(--sy-accent); outline-offset: 3px; }
.sy-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.sy-btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sy-spin .7s linear infinite; }
.sy-auth .sy-link { min-height: 0; height: auto; padding: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none !important; color: var(--sy-ink); font: inherit; font-weight: 500; line-height: inherit; text-decoration: underline; text-decoration-color: rgba(28, 40, 64, .3); text-underline-offset: 3px; cursor: pointer; transition: text-decoration-color .2s; }
.sy-auth .sy-link:hover { text-decoration-color: currentColor; }
.sy-auth .sy-link[disabled] { color: var(--sy-muted); text-decoration: none; cursor: default; }

.sy-auth-error { margin-bottom: 16px; padding: 12px 16px; border-left: 3px solid #b4412f; border-radius: 4px; background: #fbefec; color: #7c2416; font-size: 14px; }
.sy-auth-error[hidden] { display: none; }
.sy-auth-done { text-align: center; padding: 32px 0; }
.sy-auth-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--sy-soft); color: var(--sy-accent); }
.sy-auth-check span { display: block; width: 18px; height: 9px; margin-top: -4px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(-45deg); animation: sy-tick .45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Profile mode (Google buyers): the sign-up step without email and password. */
.sy-auth[data-mode="profile"] [data-sy-signup-only], .sy-auth[data-mode="profile"] .sy-auth-fine { display: none; }

/* Tablets: form only. Phones: bottom sheet. */
@media (max-width: 960px) {
	.sy-auth-dialog { grid-template-columns: 1fr; width: min(620px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); }
	.sy-auth-aside { position: absolute; inset: 0 0 auto auto; width: auto; background: none; }
	.sy-auth-aside__body { display: none; }
}
@media (max-width: 560px) {
	.sy-auth-overlay { padding: 0; align-items: end; }
	.sy-auth-dialog { width: 100vw; height: 90vh; height: 90dvh; border-radius: 14px 14px 0 0; animation: sy-sheet .3s var(--sy-ease); }
	.sy-auth-main { padding: 48px 20px 28px; }
	.sy-auth-main > .sy-auth { margin: 0 auto; }
	.sy-auth .sy-auth-title { font-size: 27px; }
	.sy-row { grid-template-columns: 1fr; }
	.sy-row.sy-row--keep { grid-template-columns: 1fr 1fr; }
	.sy-auth-close { top: 10px; right: 10px; }
}
@keyframes sy-fade { from { opacity: 0; } }
@keyframes sy-rise { from { opacity: 0; transform: translateY(16px) scale(.99); } }
@keyframes sy-sheet { from { transform: translateY(48px); } }
@keyframes sy-step { from { opacity: 0; transform: translateY(8px); } }
@keyframes sy-spin { to { transform: rotate(360deg); } }
@keyframes sy-tick { from { transform: rotate(-45deg) scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sy-auth-overlay, .sy-auth-dialog, .sy-auth-check span, .sy-auth-dialog .sy-auth-step:not([hidden]) { animation: none; } .sy-auth-progress { transition: none; } }
.sy-auth .sy-auth-title { text-wrap: balance; }
.sy-field input, .sy-field select, .sy-social, .sy-btn { height: 52px; }
.sy-auth-step { gap: 16px; }
