/* Login page. Colors come from variables.css, faces from brand.css. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui, 'Sofia Pro', system-ui, sans-serif);
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 100vh;
}

.split { display: grid; grid-template-columns: minmax(320px, 5fr) 6fr; min-height: 100vh; }

/* Crater panel, one rounded corner bottom right (the brand's cell shape). */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: var(--color-crater);
  color: #fff;
  border-bottom-right-radius: 104px;
}
.hero::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 340px;
  height: 340px;
  border-radius: 140px 0 0 0;
  background: var(--color-orange);
  opacity: 0.95;
}
.hero > * { position: relative; z-index: 1; }
.hero .claim {
  margin: 0;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.hero-logo { display: block; }

.login { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

.card { width: 100%; max-width: 380px; }

h1 {
  margin: 0 0 28px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--color-crater);
}

label { display: block; margin-bottom: 18px; }

label span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
}

input:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: -1px;
  border-color: transparent;
}

button {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: 0;
  border-radius: var(--radius-pill, 100px);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}

button:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
button:active { transform: none; }
button:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }

.error {
  background: var(--color-error-bg);
  color: var(--color-error);
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm, 8px);
  font-size: 14px;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding: 28px; border-bottom-right-radius: 60px; gap: 32px; }
  .hero::after { width: 200px; height: 200px; right: -60px; bottom: -60px; }
  .hero .claim { font-size: 36px; }
  .login { padding: 32px 24px 48px; }
}
