* {
  box-sizing: border-box;
}

:root {
  --bg: #0d0e10;
  --panel: #151719;
  --panel-strong: #1d2024;
  --text: #f7f3ea;
  --muted: #aaa49a;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #d7a84f;
  --gold-light: #f0c766;
  --green: #45d483;
  --danger: #ff6b6b;
  --black: #08090a;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.36), rgba(8, 9, 10, 0.88)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1300&q=85") center/cover;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 14, 16, 0.1), rgba(13, 14, 16, 0.7));
}

.brand,
.brand-copy,
.preview-card {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--gold);
  color: var(--black);
}

.brand-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.brand-copy p:not(.eyebrow),
.form-head p,
.signup-link {
  color: var(--muted);
  line-height: 1.6;
}

.preview-card {
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 14, 16, 0.82);
  backdrop-filter: blur(16px);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(69, 212, 131, 0.14);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-grid span {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-grid small,
.preview-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.preview-grid strong {
  font-size: 24px;
}

.form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
  background: radial-gradient(circle at top right, rgba(215, 168, 79, 0.12), transparent 32%), var(--bg);
}

.form-card {
  width: min(440px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 23, 25, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.form-head {
  margin-bottom: 24px;
}

.form-head h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  padding: 0 14px;
  background: var(--panel-strong);
  color: var(--text);
}

.field input:focus {
  border-color: rgba(240, 199, 102, 0.7);
  box-shadow: 0 0 0 4px rgba(240, 199, 102, 0.12);
}

.primary-btn,
.google-btn {
  display: inline-flex;
  min-height: 50px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 900;
}

.primary-btn {
  margin-top: 6px;
  background: var(--gold);
  color: var(--black);
}

.google-btn {
  background: #fff;
  color: #141414;
}

.google-btn span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #141414;
  color: #fff;
  font-size: 13px;
}

.primary-btn:disabled,
.google-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

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

.signup-link {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
}

.signup-link a {
  color: var(--gold-light);
  font-weight: 900;
}

.message {
  min-height: 18px;
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 52vh;
    gap: 42px;
  }

  .form-panel {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand-panel,
  .form-panel {
    padding: 18px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    border-radius: 10px;
  }
}