:root {
  --background: #faf9f7;
  --foreground: #1b1e23;
  --muted: #777e88;
  --border: #e4e0dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

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

.brand {
  background: linear-gradient(135deg, #27272a, #171717);
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  width: 100px;
  height: auto;
  filter: grayscale(1) brightness(0) invert(1);
}

.line {
  width: 48px;
  height: 2px;
  background: #71717a;
  margin: 38px 0 24px;
}

h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -1px;
}

h1 span {
  color: #a1a1aa;
  font-weight: 600;
}

.copyright {
  color: #71717a;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.login-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-container {
  width: 100%;
  max-width: 448px;
  animation: slideUp .5s ease both;
}

h2 {
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

header p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.login-card {
  background: rgba(255,255,255,.82);
  border: 1px solid white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 15px 35px rgba(0,0,0,.05);
}

label {
  display: block;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6b7280;
}

input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.65);
  font-size: 14px;
  margin-bottom: 24px;
  outline: none;
}

input:focus {
  border-color: #444;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

button {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 8px;
  background: #20242b;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: #383d45; }
button:disabled { opacity: .6; cursor: wait; }

#message {
  color: #dc2626;
  text-align: center;
  font-size: 13px;
  margin: 0;
}

#message:not(:empty) { margin-top: 18px; }

footer {
  text-align: center;
  padding-top: 30px;
  color: #9ca3af;
  font-size: 10px;
  letter-spacing: 2px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .brand { display: none; }
  .login-area { min-height: 100vh; }
}
