:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #071d20;
  color: #f6f0e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #f6f0e8;
  --muted: #b7c5c0;
  --teal: #18b9ad;
  --teal-dark: #0c2d32;
  --coral: #ed7566;
  --amber: #e9b45d;
  --panel: rgba(9, 31, 35, 0.76);
  --panel-solid: #102f34;
  --line: rgba(246, 240, 232, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(7, 29, 32, 0.94), rgba(31, 23, 21, 0.82)),
    #071d20;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.welcome {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 48px;
  padding: 48px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 20, 24, 0.92) 0%, rgba(4, 20, 24, 0.7) 38%, rgba(4, 20, 24, 0.26) 64%),
    linear-gradient(180deg, rgba(4, 20, 24, 0.28) 0%, rgba(4, 20, 24, 0.82) 100%);
}

.welcome-content,
.signin-panel {
  position: relative;
  z-index: 1;
}

.welcome-content {
  display: flex;
  min-height: calc(100vh - 96px);
  max-width: 720px;
  flex-direction: column;
  justify-content: space-between;
}

.brand-lockup {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(246, 240, 232, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 185, 173, 0.42), rgba(237, 117, 102, 0.28));
  box-shadow: 0 12px 38px rgba(24, 185, 173, 0.16);
  font-weight: 800;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.brand-mark path:first-child {
  fill: #a78bfa;
}

.brand-star-accent {
  fill: none;
  stroke: #f0d08d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 760;
}

.welcome-copy {
  margin: auto 0;
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.domain-strip {
  display: flex;
  width: min(100%, 610px);
  flex-wrap: wrap;
  gap: 10px;
}

.domain-strip span,
.domain-strip a {
  min-width: 112px;
  border: 1px solid rgba(246, 240, 232, 0.14);
  border-radius: 8px;
  background: rgba(246, 240, 232, 0.08);
  color: #f8f2eb;
  padding: 12px 14px;
  text-align: center;
  text-decoration: none;
}

.domain-strip a:hover,
.domain-strip a:focus-visible {
  border-color: rgba(167, 139, 250, 0.82);
  background: rgba(167, 139, 250, 0.16);
}

.signin-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 32px;
  backdrop-filter: blur(18px);
}

.panel-heading {
  margin-bottom: 28px;
}

.panel-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.7rem;
  letter-spacing: 0;
}

.signin-form {
  display: grid;
  gap: 12px;
}

label {
  color: #dbe3df;
  font-size: 0.94rem;
  font-weight: 680;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(246, 240, 232, 0.18);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 18, 21, 0.72);
  color: var(--ink);
  padding: 0 15px;
}

input::placeholder {
  color: rgba(183, 197, 192, 0.72);
}

input:focus {
  border-color: rgba(24, 185, 173, 0.9);
  box-shadow: 0 0 0 4px rgba(24, 185, 173, 0.18);
}

.google-action,
.secondary-action,
.quiet-action {
  display: inline-flex;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 780;
}

.google-action {
  gap: 12px;
  border: 0;
  background: #f8f4ee;
  color: #132d31;
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #4285f4 0 25%,
    #34a853 25% 50%,
    #fbbc05 50% 75%,
    #ea4335 75% 100%
  );
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.google-action:hover,
.google-action:focus-visible {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(246, 240, 232, 0.16);
}

.secondary-action {
  border: 1px solid rgba(246, 240, 232, 0.22);
  background: rgba(246, 240, 232, 0.08);
  color: var(--ink);
  margin-top: 8px;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(237, 117, 102, 0.8);
  background: rgba(237, 117, 102, 0.15);
}

.quiet-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  margin-top: 14px;
  padding: 0;
}

.quiet-action:hover,
.quiet-action:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: rgba(246, 240, 232, 0.58);
}

.separator span {
  height: 1px;
  background: var(--line);
}

.separator p {
  margin: 0;
  font-size: 0.9rem;
}

.security-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-message {
  min-height: 24px;
  margin: 18px 0 0;
  color: #f0d08d;
  font-size: 0.94rem;
  line-height: 1.5;
}

.form-message[data-tone="success"] {
  color: #8ad9cb;
}

.form-message[data-tone="error"] {
  color: #ffb3aa;
}

@media (max-width: 920px) {
  .welcome {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: 28px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4, 20, 24, 0.9) 0%, rgba(4, 20, 24, 0.58) 44%, rgba(4, 20, 24, 0.94) 100%),
      linear-gradient(90deg, rgba(4, 20, 24, 0.78), rgba(4, 20, 24, 0.2));
  }

  .welcome-content {
    min-height: auto;
    gap: 42px;
  }

  .welcome-copy {
    padding: 42px 0 4px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .signin-panel {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .welcome {
    padding: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.03;
  }

  .welcome-copy {
    padding-top: 34px;
  }

  .intro {
    font-size: 1rem;
    line-height: 1.6;
  }

  .domain-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .domain-strip span,
  .domain-strip a {
    min-width: 0;
  }

}
