/* Horilla Cloud sign-in / register / verification pages (design: "Horilla Cloud Login/Register", 2026-10-09).
   Light form panel on the left, dark animated brand panel on the right; the brand panel drops below 900px. */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ha-bg: #FBFAF8; --ha-ink: #141414; --ha-ink-2: #4A4743; --ha-muted: #6B6761; --ha-faint: #A29E97; --ha-line: #E7E4DF;
  --ha-card: #FFFFFF; --ha-accent: #E5503A; --ha-accent-2: #EE6A55; --ha-accent-ink: #C23F2B; --ha-ok: #1F9D55;
  --ha-err: #C23F2B; --ha-err-bg: #FDECE9; --ha-ok-bg: #E8F6EE;
  --ha-dark: #0B0B0C; --ha-dark-muted: #A1A1A6; --ha-dark-faint: #8B8B90;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ha-bg); color: var(--ha-ink); font-family: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
       -webkit-font-smoothing: antialiased; font-size: 15px; }
a { color: var(--ha-accent); text-decoration: none; }
a:hover { color: var(--ha-accent-ink); }
input::placeholder { color: var(--ha-faint); }

.ha-page { min-height: 100vh; display: flex; flex-flow: row wrap; }

/* ── Form panel ── */
.ha-form-side { flex: 1 1 440px; min-height: 100vh; display: flex; flex-direction: column; padding: 28px 32px; position: relative; }
.ha-top { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ha-muted); flex-wrap: wrap; }
.ha-top a { font-weight: 500; border: 1px solid var(--ha-line); border-radius: 9px; padding: 7px 12px; color: var(--ha-ink); background: var(--ha-card); }
.ha-top a:hover { border-color: #D6D2CB; color: var(--ha-ink); }
.ha-top .ha-mobile-brand { margin-right: auto; display: none; align-items: center; border: 0; padding: 0; background: none; }
.ha-mobile-brand img { width: 163px; height: 26px; }
.ha-main { flex: 1; display: grid; place-items: center; padding: 24px 0; }
.ha-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; animation: haCard .7s cubic-bezier(.2,.7,.2,1) backwards; }
.ha-card--wide { max-width: 500px; }
.ha-head { display: flex; flex-direction: column; gap: 6px; }
.ha-title { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.ha-sub { margin: 0; font-size: 14.5px; color: var(--ha-muted); line-height: 1.5; }
.ha-eyebrow { font-size: 12.5px; font-weight: 500; color: var(--ha-accent); letter-spacing: .02em; }

.ha-sso { display: grid; grid-template-columns: 1fr; gap: 10px; }
.ha-sso button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--ha-line);
                 background: var(--ha-card); border-radius: 11px; padding: 11px; font-size: 14px; font-weight: 500; cursor: pointer; width: 100%;
                 transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--ha-ink); }
.ha-sso button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); border-color: #D6D2CB; }
.ha-sso button:focus-visible { outline: 2px solid var(--ha-accent); outline-offset: 2px; }
.ha-or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ha-faint); }
.ha-or::before, .ha-or::after { content: ''; flex: 1; height: 1px; background: var(--ha-line); }

.ha-fields { display: flex; flex-direction: column; gap: 14px; }
.ha-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ha-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; min-width: 0; }
.ha-field > .ha-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ha-field .ha-opt { font-weight: 400; color: var(--ha-faint); }
.ha-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ha-line); background: var(--ha-card); border-radius: 11px;
            padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
.ha-input:focus-within { border-color: var(--ha-accent); box-shadow: 0 0 0 4px rgba(229,80,58,.12); }
.ha-input.is-invalid { border-color: var(--ha-err); }
.ha-input svg { flex: none; color: var(--ha-faint); }
.ha-input input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 12px 0; font: 15px Geist, system-ui, sans-serif; color: var(--ha-ink); }
.ha-input input[type=number] { -moz-appearance: textfield; }
.ha-show { all: unset; font-size: 12.5px; color: var(--ha-muted); cursor: pointer; user-select: none; padding: 4px 2px; }
.ha-show:hover { color: var(--ha-ink); }
.ha-show:focus-visible { outline: 2px solid var(--ha-accent); outline-offset: 2px; border-radius: 4px; }
.ha-field-error { font-size: 12.5px; font-weight: 400; color: var(--ha-err); }

.ha-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.ha-meter span { height: 4px; border-radius: 2px; background: var(--ha-line); transition: background .3s; }
.ha-meter[data-score="1"] span:nth-child(-n+1) { background: #E5503A; }
.ha-meter[data-score="2"] span:nth-child(-n+2) { background: #F5A524; }
.ha-meter[data-score="3"] span:nth-child(-n+3) { background: #8BC34A; }
.ha-meter[data-score="4"] span { background: var(--ha-ok); }
.ha-rules { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; font-weight: 400; color: var(--ha-faint); }
.ha-rules span { display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
.ha-rules span::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.3px solid currentColor; box-sizing: border-box; }
.ha-rules span.is-met { color: var(--ha-ok); }
.ha-rules span.is-met::before { background: var(--ha-ok); border-color: var(--ha-ok); }

.ha-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ha-ink-2); cursor: pointer; user-select: none; line-height: 1.45; }
.ha-check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px;
                  border: 1.5px solid #CFCAC2; background: var(--ha-card); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.ha-check input:checked { background: var(--ha-accent); border-color: var(--ha-accent); }
.ha-check input:checked::after { content: '✓'; color: #fff; font-size: 11px; line-height: 1; }
.ha-check input:focus-visible { outline: 2px solid var(--ha-accent); outline-offset: 2px; }

.ha-btn { all: unset; box-sizing: border-box; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
          font-size: 15px; font-weight: 600; background: linear-gradient(#EE6A55, #E5503A); color: #fff; border-radius: 12px; padding: 14px;
          cursor: pointer; width: 100%; box-shadow: 0 10px 26px rgba(229,80,58,.32), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s; }
.ha-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(229,80,58,.38), inset 0 1px 0 rgba(255,255,255,.25); }
.ha-btn:focus-visible { outline: 2px solid var(--ha-ink); outline-offset: 3px; }
.ha-btn:disabled, .ha-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.ha-btn--ghost { background: var(--ha-card); color: var(--ha-ink); border: 1px solid var(--ha-line); box-shadow: none; font-weight: 500; }
.ha-btn--ghost:hover { box-shadow: 0 8px 20px -12px rgba(0,0,0,.25); }
.ha-btn.is-busy { color: transparent; }
.ha-btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
                         border-top-color: #fff; animation: haSpin .7s linear infinite; }
.ha-note { text-align: center; font-size: 13px; color: #8A8680; }
.ha-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ha-muted); }
.ha-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ha-muted); justify-content: center; }
.ha-back:hover { color: var(--ha-ink); }

.ha-alert { border-radius: 11px; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; border: 1px solid transparent; }
.ha-alert--error { background: var(--ha-err-bg); border-color: #F6C7BE; color: #8E2A1B; animation: haShake .45s ease; }
.ha-alert--success { background: var(--ha-ok-bg); border-color: #BFE5CD; color: #16663A; }
.ha-alert--info { background: #F3F1ED; border-color: var(--ha-line); color: var(--ha-ink-2); }
.ha-alert p { margin: 4px 0 0; }
.ha-alert a { font-weight: 500; }

.ha-otp { letter-spacing: .5em; font-size: 20px !important; font-weight: 600; text-align: center; }

.ha-foot { display: flex; justify-content: flex-end; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ha-faint); }
.ha-foot a { color: var(--ha-faint); }
.ha-foot a:hover { color: var(--ha-ink); }

/* ── Brand panel ── */
.ha-brand { flex: 1 1 520px; min-height: min(100vh, 760px); position: relative; overflow: hidden; background: var(--ha-dark); color: #fff;
            display: flex; flex-direction: column; padding: 36px 44px; }
.ha-brand__bg { position: absolute; inset: 0; pointer-events: none; }
.ha-brand__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                  linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px;
                  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); }
.ha-blob { position: absolute; border-radius: 50%; filter: blur(40px); animation: haBlob 20s ease-in-out infinite; }
.ha-blob--1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(229,80,58,.55), transparent 62%); top: -180px; left: -120px; }
.ha-blob--2 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(245,165,36,.35), transparent 62%); bottom: -220px; right: -160px; animation-duration: 24s; animation-delay: -7s; }
.ha-blob--3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(229,80,58,.25), transparent 62%); top: 40%; left: 40%; animation-delay: -12s; }
.ha-logo { position: relative; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: #fff; }
.ha-logo img { width: 200px; height: 32px; }
.ha-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 80px 0; }
.ha-orbit { position: relative; width: min(380px, 72vw); aspect-ratio: 1 / 1; }
.ha-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.ha-ring--1 { width: 170px; height: 170px; margin: -85px 0 0 -85px; border: 1px dashed rgba(255,255,255,.14); }
.ha-ring--2 { width: 260px; height: 260px; margin: -130px 0 0 -130px; border: 1px dashed rgba(255,255,255,.08); }
.ha-core { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 26px;
           background: linear-gradient(160deg, #2A2A2E, #141416); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center;
           box-shadow: 0 0 80px rgba(229,80,58,.45), 0 20px 40px rgba(0,0,0,.5); animation: haFloat 5s ease-in-out infinite; }
.ha-core img { width: 56px; height: 59px; }
/* each satellite: a zero-size arm rotated to its angle, spinning; the card counter-spins so it stays upright */
.ha-arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)); }
.ha-arm > div { position: absolute; width: 0; height: 0; animation: haOrbit var(--t) linear infinite; }
.ha-arm > div > div { position: absolute; left: var(--r); top: 0; transform: rotate(calc(-1 * var(--a))); }
.ha-arm > div > div > div { animation: haOrbit var(--t) linear infinite reverse; }
.ha-chip { transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; background: rgba(28,28,30,.82); backdrop-filter: blur(10px);
           border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 9px 12px 9px 9px; white-space: nowrap;
           box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); animation: haIn .6s ease backwards; animation-delay: var(--d); }
.ha-chip i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: normal; color: #fff; }
.ha-chip b { display: block; font-size: 12.5px; font-weight: 600; }
.ha-chip small { display: block; font-size: 11px; color: var(--ha-dark-faint); }
.ha-copy { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 460px; min-height: 150px; }
.ha-slide { display: none; flex-direction: column; gap: 14px; animation: haIn .6s ease; }
.ha-slide.is-on { display: flex; }
.ha-slide h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.ha-slide p { margin: 0; font-size: 14.5px; color: var(--ha-dark-muted); line-height: 1.55; }
.ha-dots { display: flex; gap: 6px; margin-top: 4px; }
.ha-dots button { all: unset; height: 4px; border-radius: 2px; cursor: pointer; transition: .4s; width: 10px; background: rgba(255,255,255,.25); }
.ha-dots button.is-on { width: 28px; background: var(--ha-accent); }
.ha-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@keyframes haBlob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(70px,-50px) scale(1.15); } 66% { transform: translate(-50px,40px) scale(.9); } }
@keyframes haFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes haIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes haCard { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes haSpin { to { transform: rotate(360deg); } }
@keyframes haShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
@keyframes haOrbit { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .ha-brand { display: none; }
  .ha-top .ha-mobile-brand { display: inline-flex; }
}
@media (max-width: 520px) {
  .ha-form-side { padding: 20px 16px; }
  .ha-row { grid-template-columns: 1fr; }
  .ha-title { font-size: 26px; }
  .ha-top > span { display: none; }
  .ha-foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-blob, .ha-core, .ha-arm > div, .ha-arm > div > div > div, .ha-card, .ha-chip, .ha-slide, .ha-alert--error { animation: none !important; }
}
