/* Sign in / sign up / reset pages: the Swift Shipings glass look, with a light and a dark theme. */
html.auth-page { --primary: #fd5523; --primary-dark: #e0431a; --a-bg: #f3f5f9; --a-text: #0b1220; --a-mut: #5d6779; --a-line: rgba(11, 18, 32, .12); --a-field: #fff; --a-field-focus: #fff; --a-card: rgba(255, 255, 255, .86); --a-card-line: rgba(11, 18, 32, .1); --a-top: rgba(243, 245, 249, .85); --a-icon: #8b95a7; --a-err: #c62828; --a-err-bg: rgba(239, 68, 68, .1); }
html.auth-page[data-theme="dark"] { --a-bg: #070b10; --a-text: #f4f7fb; --a-mut: #8b97a8; --a-line: rgba(255, 255, 255, .1); --a-field: rgba(0, 0, 0, .28); --a-field-focus: rgba(0, 0, 0, .38); --a-card: linear-gradient(165deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .04) 45%, rgba(10, 15, 22, .35) 100%); --a-card-line: rgba(255, 255, 255, .16); --a-top: rgba(7, 11, 16, .8); --a-icon: #5f6b7a; --a-err: #fca5a5; --a-err-bg: rgba(239, 68, 68, .14); }

html.auth-page, html.auth-page body { margin: 0; max-width: 100%; overflow-x: hidden; min-height: 100%; font-family: "DM Sans", system-ui, sans-serif; background: var(--a-bg); color: var(--a-text); -webkit-font-smoothing: antialiased; }
html.auth-page a { color: inherit; text-decoration: none; }

.auth-login { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 96px 18px 28px; overflow: hidden; }
.auth-login__glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 50% -10%, color-mix(in srgb, var(--primary) 30%, transparent), transparent 60%), radial-gradient(ellipse 45% 40% at 100% 20%, rgba(56, 189, 248, .12), transparent 55%), radial-gradient(ellipse 40% 45% at 0% 80%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 55%); animation: auth-drift 14s ease-in-out infinite alternate; }
.auth-login__glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--a-text) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--a-text) 4%, transparent) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 15%, transparent 75%); opacity: .7; }
.auth-login__orb { position: fixed; width: min(42vw, 520px); height: min(42vw, 520px); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); top: 8%; right: -4%; opacity: .55; z-index: 0; animation: auth-spin 40s linear infinite; pointer-events: none; }
.auth-login__orb--alt { top: auto; right: auto; bottom: -8%; left: -6%; width: min(38vw, 440px); height: min(38vw, 440px); opacity: .35; animation-direction: reverse; animation-duration: 52s; }
@keyframes auth-drift { from { transform: translateY(0) scale(1); } to { transform: translateY(18px) scale(1.04); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.auth-login__top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--a-top); backdrop-filter: blur(10px); border-bottom: 1px solid var(--a-line); }
.auth-login__top-brand img { height: 38px; width: auto; display: block; }
.auth-login__top-brand .logo-dark { display: none; }
html.auth-page[data-theme="dark"] .auth-login__top-brand .logo-dark { display: block; }
html.auth-page[data-theme="dark"] .auth-login__top-brand .logo-light { display: none; }
.auth-login__tools { display: flex; align-items: center; gap: 8px; }
.auth-login__top-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--a-line); font-size: .84rem; font-weight: 600; color: var(--primary) !important; }
.auth-login__top-link:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.auth-tool { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--a-line); background: transparent; color: var(--a-text); cursor: pointer; font-size: .95rem; }
.auth-tool:hover { border-color: var(--primary); color: var(--primary); }

.auth-login__panel { position: relative; z-index: 1; width: min(100%, 420px); animation: auth-rise .7s cubic-bezier(.22, 1, .36, 1) both; }
.auth-login__intro { text-align: center; margin-bottom: 26px; }
.auth-login__intro h1 { font-size: clamp(2rem, 6vw, 2.55rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.auth-login__intro h1 em { font-style: normal; color: var(--primary); }
.auth-login__intro p { color: var(--a-mut); font-size: .95rem; line-height: 1.5; margin: 0; }

.auth-login__card { position: relative; background: var(--a-card); border: 1px solid var(--a-card-line); border-radius: 22px; padding: 26px 22px 22px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .3), 0 0 60px -20px color-mix(in srgb, var(--primary) 28%, transparent); backdrop-filter: blur(24px) saturate(1.3); animation: auth-rise .85s .08s cubic-bezier(.22, 1, .36, 1) both; }
@media (min-width: 480px) { .auth-login__card { padding: 30px 28px 26px; } }

.auth-field { position: relative; margin-bottom: 14px; }
.auth-field input { width: 100%; box-sizing: border-box; padding: 26px 46px 10px 14px; border-radius: 14px; border: 1px solid var(--a-line); background: var(--a-field); color: var(--a-text); font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-field input::placeholder { color: transparent; }
.auth-field label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--a-mut); font-size: .92rem; pointer-events: none; transition: .2s cubic-bezier(.22, 1, .36, 1); }
.auth-field input:focus, .auth-field input:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: var(--a-field-focus); }
.auth-field input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.auth-field input:focus + label, .auth-field input:not(:placeholder-shown) + label { top: 9px; transform: none; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.auth-field__icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--a-icon); font-size: .9rem; pointer-events: none; }
button.auth-field__icon { pointer-events: auto; border: 0; background: none; padding: 8px; margin-right: -6px; cursor: pointer; }
button.auth-field__icon:hover { color: var(--primary); }
.auth-field.has-error input { border-color: var(--a-err); }
.auth-err { margin: -6px 2px 12px; color: var(--a-err); font-size: .8rem; }
.auth-alert { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--a-err-bg); border: 1px solid color-mix(in srgb, var(--a-err) 40%, transparent); color: var(--a-err); font-size: .875rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .auth-row { grid-template-columns: 1fr; gap: 0; } }

.auth-login__meta { display: flex; align-items: center; justify-content: flex-end; margin: 2px 0 16px; }
.auth-login__forgot { color: var(--primary) !important; font-size: .86rem; font-weight: 600; }
.auth-login__btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--primary) 60%, transparent); transition: transform .18s ease; }
.auth-login__btn:hover { transform: translateY(-2px); }
.auth-login__footer { text-align: center; margin: 18px 0 0; color: var(--a-mut); font-size: .9rem; }
.auth-login__footer a { color: var(--primary) !important; font-weight: 700; }
.auth-login__fine { text-align: center; margin: 14px 0 0; color: var(--a-mut); font-size: .76rem; line-height: 1.5; }
.auth-login__fine a { color: var(--primary) !important; }
.auth-login__copy { text-align: center; margin-top: 22px; color: var(--a-mut); opacity: .7; font-size: .75rem; }

@media (max-width: 480px) { .auth-login { padding-top: 88px; } .auth-login__top-link span { display: none; } .auth-login__top-link { width: 44px; padding: 0; justify-content: center; } }
html.auth-page .pw-lang-switcher { --lg-bg: #fff; --lg-ink: #0b1220; --lg-line: rgba(11, 18, 32, .15); }
html.auth-page[data-theme="dark"] .pw-lang-switcher { --lg-bg: #111a2b; --lg-ink: #e6ebf5; --lg-line: rgba(255, 255, 255, .16); }
@media (max-width: 480px) { .auth-login__top { padding: 10px 12px; gap: 8px; } .auth-login__top-brand img { height: 30px; } .auth-login__tools { gap: 6px; } .auth-login__tools .pw-lang-code { display: none; } .auth-login__tools .pw-lang-trigger { width: 44px; padding: 0; justify-content: center; } .auth-login__top-link, .auth-tool { width: 40px; height: 40px; } .auth-login__tools .pw-lang-trigger { height: 40px; width: 40px; } .auth-login__tools .pw-lang-menu { right: -50px; } }