@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;800&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: #ededef;
  background: #101113;
  color-scheme: dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --accent: #ff8a4c;
  --muted: #b3b3bc;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { flex-shrink: 0; }
.auth-page { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; margin: 0 clamp(24px, 4.5vw, 80px); height: 96px; flex-shrink: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark > svg { width: 32px; height: 32px; color: var(--accent); }
.wordmark > span:first-of-type { font-family: "Manrope", sans-serif; font-size: 32px; letter-spacing: -1.5px; font-weight: 800; line-height: 1; }
.wordmark-dot { color: var(--accent); }
.brand-label { font-size: 14px; font-weight: 500; line-height: 1.25; color: #c1c1c9; margin-left: 14px; }
.header-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.header-label svg { width: 17px; height: 17px; }
.auth-layout { width: min(1060px, calc(100% - 112px)); margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 100px; align-items: center; padding: 32px 0 64px; }
h1 { margin: 24px 0 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: clamp(110px, 11vw, 158px); font-weight: 600; line-height: .82; letter-spacing: -.025em; }
h1 > span { color: var(--accent); }
.firewall-art { width: 100%; max-width: 460px; margin-top: 24px; }
.firewall-art > svg { display: block; width: 100%; height: auto; }
.wall-scan { animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(18px); opacity: 0; } 15%, 85% { opacity: .65; } 50% { transform: translateY(188px); } }
.signin-card { background: #191a1e; border-radius: 12px; padding: 36px 32px; }
.signin-card h2 { font-family: "Manrope", sans-serif; font-size: 26px; line-height: 1.25; letter-spacing: -.7px; font-weight: 500; margin: 0 0 6px; }
.destination { margin-bottom: 32px; }
.destination-host { display: block; overflow-wrap: anywhere; font-family: "Manrope", sans-serif; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -.6px; color: var(--accent); }
.signin-form { display: flex; flex-direction: column; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 10px; }
.form-field label { color: #d2d2d8; font-size: 15px; font-weight: 500; }
.form-field input { width: 100%; height: 52px; padding: 0 15px; border: 0; border-radius: 5px; outline: none; background: #25262c; color: #f4f4f6; font-size: 16px; transition: background .18s, box-shadow .18s; }
.form-field input::-moz-placeholder { color: #b0b0bc; }
.form-field input::placeholder { color: #b0b0bc; }
.form-field input:hover { background: #2c2d34; }
.form-field input:focus { box-shadow: 0 0 0 2px var(--accent); background: #25262c; }
.form-field input:disabled { opacity: .6; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; top: 4px; right: 3px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #c0c0c9; }
.password-toggle:hover { color: var(--accent); }
.password-toggle svg { width: 20px; height: 20px; }
.primary-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px; border: 0; border-radius: 5px; color: #20160f; background: var(--accent); font-size: 16px; font-weight: 700; transition: background .18s, box-shadow .18s; }
.signin-form > .primary-button { margin-top: 6px; }
.primary-button > svg { position: absolute; right: 17px; width: 20px; height: 20px; transition: transform .18s; }
.primary-button:hover:not(:disabled) { background: #ffad7f; box-shadow: 0 4px 20px #ff8a4c17; }
.primary-button:hover > svg { transform: translateX(3px); }
.form-error { display: flex; align-items: flex-start; gap: 10px; margin: -12px 0 22px; padding: 12px; border-radius: 5px; background: #ff886515; color: #ffc0aa; font-size: 14px; line-height: 1.4; }
.form-error svg { width: 18px; height: 18px; margin-top: 1px; }
.field-hint { color: #ffc393; font-size: 14px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.session-check { min-height: 255px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 16px; }
.success-content { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.success-indicator { display: grid; place-items: center; width: 56px; height: 56px; margin: 6px 0; border-radius: 50%; background: #ff8a4c15; color: var(--accent); }
.success-label { font-size: 16px; color: #c2c2cc; margin: 0 0 10px; }
.secondary-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 5px; background: transparent; color: #c2c2cc; font-size: 15px; }
.secondary-button:hover { background: #ffffff08; }
.secondary-button svg { width: 18px; height: 18px; }
@media (max-width: 1050px) {
  .auth-layout { gap: 48px; width: calc(100% - 80px); grid-template-columns: minmax(0, 1fr) 360px; }
  h1 { font-size: 124px; }
  .signin-card { padding: 28px; }
  .destination-host { font-size: 24px; }
}
@media (max-height: 740px) and (min-width: 901px) {
  .site-header { height: 72px; }
  .auth-layout { padding: 20px 0 40px; }
  h1 { font-size: 112px; margin-top: 16px; }
  .firewall-art { max-width: 340px; margin-top: 14px; }
  .signin-card { padding: 26px; }
}
@media (max-width: 900px) {
  .site-header { height: 76px; }
  .wordmark > span:first-of-type { font-size: 26px; }
  .wordmark > svg { width: 28px; height: 28px; }
  .brand-label { font-size: 14px; margin-left: 8px; }
  .header-label { font-size: 0; gap: 0; }
  .header-label svg { width: 20px; height: 20px; }
  .auth-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; width: min(400px, calc(100% - 40px)); padding: 24px 0 40px; }
  .intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px; }
  h1 { font-size: 64px; margin: 0; }
  .firewall-art { width: 100%; margin: 0; }
  .signin-card { padding: 28px 24px; }
  .signin-card h2 { font-size: 24px; }
  .destination-host { font-size: 24px; }
}
@media (max-width: 900px) and (max-height: 740px) {
  .site-header { height: 64px; }
  .auth-layout { gap: 22px; padding: 16px 0 28px; }
  h1 { font-size: 58px; }
  .signin-card { padding: 22px; }
  .destination { margin-bottom: 24px; }
  .signin-form { gap: 18px; }
  .form-field { gap: 8px; }
  .form-field input, .primary-button { height: 48px; }
  .password-toggle { top: 2px; right: 2px; }
}
@media (max-width: 900px) and (max-height: 620px) {
  .site-header { height: 60px; }
  .auth-layout { gap: 16px; padding: 12px 0 20px; }
  h1 { font-size: 48px; }
  .signin-card { padding: 20px; }
  .signin-card h2, .destination-host { font-size: 22px; }
  .destination { margin-bottom: 18px; }
  .signin-form { gap: 14px; }
  .auth-layout:has(.form-error) .intro { display: none; }
}
@media (max-height: 540px) and (min-width: 901px) {
  .site-header { height: 60px; }
  .auth-layout { padding: 12px 0 24px; }
  .firewall-art { display: none; }
  .signin-card { padding: 20px 24px; }
  .destination { margin-bottom: 20px; }
  .signin-form { gap: 14px; }
  .form-field input, .primary-button { height: 48px; }
  .password-toggle { top: 2px; }
}
@media (max-height: 450px) and (min-width: 600px) {
  .site-header { height: 48px; }
  .auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: calc(100% - 48px); gap: 24px; padding: 6px 0 10px; }
  .intro { display: block; }
  h1 { font-size: 80px; }
  .firewall-art { display: none; }
  .signin-card { padding: 18px; }
  .signin-card h2, .destination-host { font-size: 22px; }
  .destination { margin-bottom: 14px; }
  .signin-form { gap: 10px; }
  .form-field { gap: 6px; }
  .form-field input, .primary-button { height: 44px; }
  .password-toggle { top: 0; right: 1px; }
  .form-error { margin: -4px 0 10px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .packet-stream, .wall-impact, .wall-scan { display: none; }
}
