:root {
  --bg: #0a0e14;
  --panel: #111827;
  --card: #161f2e;
  --border: #243044;
  --text: #f3f5f9;
  --muted: #8fa3bf;
  --primary: #4f6ef7;
  --primary-hover: #3d5ce8;
  --danger: #f06767;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px;
  background: linear-gradient(145deg, #0f1729 0%, #111827 50%, #0c1220 100%);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.15) 0%, transparent 70%);
  top: 20%; left: 30%;
}

.brand-logo { max-width: 260px; height: auto; position: relative; z-index: 1; }

.login-hero-text {
  margin-top: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-hero-text h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.login-hero-text p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}

.login-container { width: 100%; max-width: 400px; }

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.login-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.form-group input::placeholder { color: #5a6d87; }

.error-msg {
  background: rgba(240, 103, 103, 0.1);
  border: 1px solid rgba(240, 103, 103, 0.25);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  border: none;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.3);
  margin-top: 8px;
}

.btn-login:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.mobile-logo { display: none; max-width: 180px; margin-bottom: 28px; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .mobile-logo { display: block; }
  .login-panel { padding: 32px 24px; }
}
