:root {
  --bg:#0f0f0f;
}

* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #0f0f0f;;
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
}

.page-root {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

.left-hero {
  padding: 64px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  background: transparent;
}

#logo {
  max-width: 300px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand h1 span {
  font-weight: 600;
  color: #b6e3d9;
}

.hero-copy h2 { font-size: 48px; margin: 0 0 8px; }
.hero-copy p { margin: 0; color: var(--muted); max-width: 540px; font-size: 16px; }

.auth-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: black;
}

.card-inner {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 36px;
  border: none;
}

.card-header h3 { margin: 0; font-size: 22px; }

.messages {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.message {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: none;
  color: var(--muted);
  font-size: 14px;
}
.message.error {
  color: #ffd7d7;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.field { position: relative; display: block; }
.field input {
  width: 100%;
  padding: 18px 14px;
  border-radius: 12px;
  background: white;
  border: none;
  color: black;
  font-size: 18px;
}
.field .label {
  position: absolute;
  left: 14px;
  top: 12px;
  pointer-events: none;
  font-size: 12px;
  color: var(--muted);
  transition: all .18s ease;
}
.field input:focus {
  outline: none;
}
.field input:focus + .label,
.field input:not(:placeholder-shown) + .label {
  transform: translateY(-34px);
  font-size: 11px;
  color: #cfeefd;
}

.show-pass {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.btn.primary {
  background: #21676f;
  color: white;
}
.btn.primary:active { transform: translateY(1px); }

@media (max-width:880px) {
  .page-root { grid-template-columns: 1fr; }
  .left-hero { display: none; }
  .auth-card { padding: 28px; }
}
