/* SolveARC client login */
:root {
  --bg: #eef3f7;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --cyan: #1fa9d1;
  --cyan-ink: #0b7494;
  --cyan-ink-2: #075a73;
  --line: #d5dee6;
  --soft-line: #e2e8f0;
  --danger: #b4232f;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: var(--cyan-ink); }
a:hover { color: var(--cyan-ink-2); }
:focus-visible { outline: 3px solid rgba(31, 169, 209, .5); outline-offset: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rot {
  0% { transform: translateY(100%); opacity: 0; }
  4% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(0); opacity: 1; }
  34% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes chipIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Orbit: the logo's dots travelling round a big ring */
/* Orbit: the logo's dots circling the sign-in card (never the headline) */
.card-wrap {
  position: relative;
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
}
.ring, .ring-outer {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.ring { width: 720px; height: 720px; border: 1.5px solid rgba(31, 169, 209, .45); }
.ring-outer { width: 800px; height: 800px; border: 1px solid rgba(31, 169, 209, .14); }
.orbit { position: absolute; inset: 0; animation: spin linear infinite; will-change: transform; }
.o1 { animation-duration: 16s; animation-delay: -2s; }
.o2 { animation-duration: 22s; animation-delay: -9s; }
.o3 { animation-duration: 28s; animation-delay: -17s; }
.dot { position: absolute; left: 50%; border-radius: 50%; background: var(--cyan); }
.dot.s { width: 18px; height: 18px; top: -9px; margin-left: -9px; opacity: .85; }
.dot.m { width: 30px; height: 30px; top: -15px; margin-left: -15px; }
.dot.l { width: 44px; height: 44px; top: -22px; margin-left: -22px; }

.in { animation: fadeUp .7s ease-out both; }
.d1 { animation-delay: .2s; } .d2 { animation-delay: .35s; } .d3 { animation-delay: .5s; } .d5 { animation-delay: .9s; }

header {
  position: relative;
  padding: 28px 40px;
}
header img { width: 170px; height: auto; }

main {
  position: relative;
  flex-grow: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(56px, 7vw, 140px);
}

.intro { flex: 1 1 400px; display: flex; justify-content: center; }
.intro h1 { max-width: 8em; }
.intro h1 {
  margin: 0;
  font-size: clamp(40px, min(5.6vw, 10vh), 80px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.04em;
}
.rot { position: relative; display: block; height: 1.12em; margin-top: .04em; overflow: hidden; }
.w { position: absolute; left: 0; top: 0; white-space: nowrap; animation: rot 9s ease-in-out infinite both; }
.w2 { animation-delay: 3s; color: var(--cyan-ink); }
.w3 { animation-delay: 6s; color: var(--cyan-ink); }

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card-head { display: flex; flex-direction: column; gap: 8px; }
.greet { font-size: 14px; font-weight: 600; color: var(--cyan-ink); }
.card h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.card-head p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn[disabled] { cursor: progress; opacity: .85; }
.gbtn { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.gbtn:hover { background: #f6f9fb; border-color: #b9c7d3; }
.cbtn { min-height: 56px; border: none; background: var(--ink); color: #fff; }
.cbtn:hover { background: #1c2842; }
.spinner { display: none; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: block; }

.or { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); }
.or::before, .or::after { content: ''; flex-grow: 1; height: 1px; background: var(--soft-line); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7fafc;
  font-size: 16px;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(31, 169, 209, .18); background: #fff; }

.found {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f6fb;
  border: 1px solid #bfe6f3;
}
.found.show { display: flex; animation: chipIn .35s ease-out both; }
.found .logo-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 72px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d7ecf3;
  overflow: hidden;
}
.found .logo-chip img { width: 62px; height: auto; }
.found .txt { display: flex; flex-direction: column; flex-grow: 1; }
.found .txt strong { font-size: 14px; }
.found .txt span { font-size: 12px; color: var(--ink-2); }

.notice { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.notice.show { display: block; }
.notice.error { background: #fcecee; color: var(--danger); }
.notice.info { background: #e8f6fb; color: var(--cyan-ink); }

.rule { height: 1px; background: var(--soft-line); }
.new { margin: 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.new a { font-weight: 700; text-decoration: none; }

footer {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-2);
}
footer .facts, footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
footer .facts span { display: inline-flex; align-items: center; gap: 8px; }
footer nav a { color: var(--ink-2); text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 820px) {
  header { padding: 20px; }
  header img { width: 132px; }
  main { padding: 8px 20px 28px; gap: 32px; }
  .intro { justify-content: flex-start; }
  .intro h1 { font-size: clamp(34px, 9.5vw, 48px); }
  .card { padding: 28px 22px; border-radius: 20px; }
  .ring { width: 520px; height: 520px; }
  .ring-outer { display: none; }
  .dot.l { width: 30px; height: 30px; top: -15px; margin-left: -15px; }
  footer { padding: 16px 20px 26px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.orbit) { animation: none !important; }
  .w1 { transform: none; opacity: 1; }
  .w2, .w3 { display: none; }
}
#emailForm .cbtn { margin-top: 22px; }

/* Shorter laptop screens (e.g. 1366x768 or scaled displays): tighten so it all fits */
@media (min-width: 821px) and (max-height: 820px) {
  header { padding: 16px 40px; }
  header img { width: 132px; }
  main { padding: 4px 40px 12px; }
  .card-wrap { max-width: 420px; flex-basis: 420px; }
  .ring { width: 640px; height: 640px; }
  .ring-outer { width: 710px; height: 710px; }
  .card { padding: 28px 32px; gap: 14px; border-radius: 20px; }
  .card h2 { font-size: 24px; }
  .card-head { gap: 4px; }
  .card-head p { font-size: 14px; }
  .btn { min-height: 46px; font-size: 15px; }
  .cbtn { min-height: 48px; }
  .field { gap: 6px; }
  .field input { min-height: 46px; font-size: 15px; }
  #emailForm .cbtn { margin-top: 14px; }
  .new { font-size: 14px; }
  footer { padding: 10px 40px 16px; font-size: 13px; }
}
@media (min-width: 821px) and (max-height: 640px) {
  header { padding: 12px 40px; }
  header img { width: 112px; }
  .card { padding: 22px 28px; gap: 10px; }
  .card-head p { display: none; }
  .btn { min-height: 42px; }
  .cbtn { min-height: 44px; }
  .field input { min-height: 42px; }
  #emailForm .cbtn { margin-top: 10px; }
  footer { padding: 6px 40px 10px; }
}

.new a { white-space: nowrap; }

/* Tablets in portrait: stack and centre */
@media (min-width: 600px) and (max-width: 820px) {
  main { justify-content: center; }
  .intro { justify-content: center; flex-basis: 100%; }
  .card-wrap { margin: 0 auto; }
}

/* Phones held sideways: keep headline and card side by side */
@media (orientation: landscape) and (max-height: 500px) {
  header { padding: 10px 24px; }
  header img { width: 104px; }
  main { flex-wrap: nowrap; gap: 28px; padding: 0 24px 12px; justify-content: space-between; }
  .intro { flex: 1 1 0; justify-content: flex-start; }
  .intro h1 { font-size: clamp(26px, 4.6vw, 40px); }
  .card-wrap { flex: 0 0 360px; }
  .ring { width: 480px; height: 480px; }
  .ring-outer { display: none; }
  .card { padding: 18px 22px; gap: 10px; border-radius: 18px; }
  .card-head p { display: none; }
  .card h2 { font-size: 22px; }
  .btn { min-height: 44px; font-size: 15px; }
  .field input { min-height: 44px; }
  #emailForm .cbtn { margin-top: 10px; }
  .rule, .new { display: none; }
  footer { padding: 8px 24px 12px; flex-direction: row; font-size: 12.5px; }
  footer .facts { display: none; }
}

/* Touch screens: bigger tap areas for text links */
@media (pointer: coarse) {
  footer nav a, .new a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
}
