:root {
  --bg: #f3f6fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --primary: #4f46e5;
  --primary-dark: #312e81;
  --primary-soft: #eef2ff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: rgba(17, 24, 39, 0.12);
  --success: #10b981;
  --error: #ef4444;
  --dark: #0f172a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

button,
input,
a {
  font: inherit;
}

.login-page {
  width: min(1100px, 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(79, 70, 229, 0.18);
  backdrop-filter: blur(12px);
}

.brand-panel {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a5b4fc;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.1rem);
  line-height: 1.1;
  max-width: 420px;
}

.brand-copy {
  margin: 18px 0 0;
  max-width: 420px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.feature-list li::before {
  content: "✓";
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: 0.9rem;
}

.login-panel {
  background: var(--panel-strong);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.5rem);
  color: var(--text);
}

.login-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-group label {
  font-weight: 700;
  color: var(--text);
}

.field-group input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f9fafb;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-wrap input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.primary-button,
.secondary-button {
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary) 0%, #6d5ef5 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  background: #f5f3ff;
  color: var(--primary-dark);
  border: 1px solid #ddd6fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea4335, #fbbc05, #34a853, #4285f4);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  z-index: 1;
  background: white;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signup-text {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.status-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--error);
}

@media (max-width: 820px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .login-panel {
    padding: 36px 26px;
  }
}
