:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --panel: #edf2f7;
  --primary: #0f6cbd;
  --secondary: #ef4444;
  --text: #111827;
  --muted: #64748b;
  --border: #d7e0eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.brand-panel {
  background: var(--primary);
  color: white;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.16);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  opacity: 0.85;
}

.brand-panel h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.brand-copy {
  margin: 18px 0 28px;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.92;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-features span {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
}

.form-panel {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 14px;
}

.brand-panel h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.03em;
}

.brand-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.brand-panel ul {
  padding-left: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}

.brand-copy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.brand-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brand-highlights span {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.form-panel {
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header h2 {
  margin: 0 0 6px;
  font-size: 32px;
}

.form-header p {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 320px;
}

form {
  display: grid;
  gap: 18px;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 20px 18px 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(15, 108, 189, 0.12);
}

.field label {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-10px);
  font-size: 12px;
  color: var(--primary);
}

.error-message {
  margin: 0;
  min-height: 20px;
  color: #dc2626;
  font-size: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: auto;
}

.options-row a,
.footer-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

button {
  margin-top: 8px;
  border: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--secondary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #dc2626;
}

button:hover {
  background: linear-gradient(135deg, #8e1d2b 0%, var(--primary-dark) 100%);
  transform: translateY(-1px);
}

.footer-text {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 28px 24px;
  }

  .form-panel {
    padding: 28px 24px;
  }
}
