:root {
  color-scheme: dark;
  --ink: #edf3ef;
  --muted: #91a9a1;
  --gold: #d9b76f;
  --line: rgba(224, 236, 231, 0.13);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(32,98,74,0.28), transparent 30rem),
    radial-gradient(circle at 7% 76%, rgba(16,59,82,0.5), transparent 36rem),
    linear-gradient(145deg, #031217, #071f28 55%, #07181e);
}
body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 0 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
a { color: inherit; }
button, input { font: inherit; }

.auth-layout { position: relative; z-index: 1; width: min(100% - 32px, 720px); margin: 0 auto; padding: 30px 0 70px; }
.brand { width: fit-content; margin-bottom: 42px; display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 760; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #08211b; background: linear-gradient(145deg, #cbdcc9, #79b18f); }
.auth-card { padding: 38px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 100% 0%, rgba(114,162,136,0.15), transparent 22rem), linear-gradient(150deg, rgba(11,47,39,0.96), rgba(7,28,40,0.97)); box-shadow: var(--shadow); }
.auth-mark { width: 58px; height: 58px; margin-bottom: 23px; display: grid; place-items: center; border-radius: 19px; color: var(--gold); background: linear-gradient(145deg, #16453a, #0a2b38); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); font-size: 1.5rem; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
h1 { max-width: 600px; margin: 0; font: 500 clamp(2.4rem, 8vw, 4rem)/0.98 Georgia, serif; letter-spacing: -0.045em; }
.intro { max-width: 580px; margin: 15px 0 27px; color: var(--muted); line-height: 1.65; }
form, .company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { min-width: 0; display: grid; gap: 7px; }
.field > span { color: #a8bab3; font-size: 0.8rem; font-weight: 700; }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; outline: none; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,0.05); font-size: 16px; }
.field input::placeholder { color: #6e8980; }
.field input:focus { border-color: rgba(145,190,161,0.55); box-shadow: 0 0 0 3px rgba(145,190,161,0.08); }
.full { grid-column: 1 / -1; }
.consent { min-height: 48px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 14px; color: #a8bab3; background: rgba(255,255,255,0.025); font-size: 0.8rem; line-height: 1.5; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: #8fb9a0; }
.consent a { color: #d8c38e; }
.company-details { border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,0.025); }
.company-details summary { padding: 15px 16px; cursor: pointer; color: #cbd8d2; font-size: 0.86rem; font-weight: 720; }
.company-details summary span { margin-left: 6px; color: #718a82; font-weight: 540; }
.company-grid { padding: 2px 16px 16px; }
.submit-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; color: #082019; background: linear-gradient(145deg, #c9dcc9, #80b391); cursor: pointer; font-weight: 760; }
.submit-button:disabled { opacity: 0.62; cursor: wait; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(8,32,25,0.25); border-top-color: #082019; border-radius: 50%; animation: spin 0.7s linear infinite; }
.submit-button.is-busy .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { min-height: 22px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; text-align: center; }
.form-message.is-error { color: #efb3aa; }
.form-message.is-success { color: #a7d4b5; }
.login-prompt { margin: 19px 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.login-prompt a { color: #d8c38e; }
@media (max-width: 620px) {
  .auth-layout { width: min(100% - 24px, 720px); padding-top: 18px; }
  .brand { margin-bottom: 26px; }
  .auth-card { padding: 27px 20px; border-radius: 25px; }
  form, .company-grid { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
