:root {
  --navy: #0f172a;
  --line: #e5e7eb;
  --text: #111827;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #f3f5f9;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; }
a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* Left */
.login-left { display: grid; place-items: center; padding: 32px 24px; background: #eef2f8; }

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--navy); }
.logo i, .logo b { color: var(--primary); font-weight: 700; }
.tagline { margin: 2px 0 22px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }

.card h1 { font-size: 18px; font-weight: 700; }
.sub { margin: 2px 0 16px; font-size: 12.5px; color: var(--text-muted); }

.form-error {
  margin-bottom: 12px; padding: 9px 12px; border-radius: 6px;
  background: #fee2e2; color: #b91c1c; font-size: 12.5px; font-weight: 500;
}

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; }

.field input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--text); background: #fff; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9ca3af; }
.field input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35); }
.field input.invalid { border-color: #fca5a5; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 40px; }
.toggle-pass {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  color: #4b5563; font-size: 14px; border-radius: 6px;
}
.toggle-pass:hover { color: var(--text); background: #f3f4f6; }

.form-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12.5px; }
.remember { display: flex; align-items: center; gap: 7px; color: #4b5563; cursor: pointer; }
.remember input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }

.btn-primary {
  width: 100%; height: 42px; border-radius: 6px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--text-muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: background 0.15s ease;
}
.social-btn:hover { background: #f9fafb; }

.signup { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-muted); }

.btn-primary:focus-visible, .social-btn:focus-visible, .toggle-pass:focus-visible, .card a:focus-visible {
  outline: 2px solid #93c5fd; outline-offset: 2px;
}

/* Right */
.login-right {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; background: #f6f8fc; border-left: 1px solid var(--line);
}
.illustration { width: 100%; max-width: 360px; height: auto; }
.login-right h2 { margin: 18px 0 18px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--navy); text-align: center; }

.features { list-style: none; display: grid; gap: 10px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #1f2937; }
.features i {
  width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: #22c55e; color: #fff; font-size: 9px;
}

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-right { display: none; }
  .login-left { background: #f3f5f9; }
}

@media (max-width: 460px) {
  .login-left { padding: 20px 14px; }
  .card { padding: 22px 18px; }
}
