:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #f5f6fa;
  background: #0f1117;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #0f1117;
}

button, input { font: inherit; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  min-height: 100vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vw, 96px);
  background: #191c26;
  border-right: 1px solid #303442;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid #e5b94b;
  border-radius: 8px;
  color: #e5b94b;
  font-weight: 800;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 38px; letter-spacing: 0; }
h2 { margin-bottom: 24px; font-size: 22px; letter-spacing: 0; }
.brand-panel p { margin-bottom: 42px; color: #aeb3c4; }

.plan-preview {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid #343847;
  border-radius: 8px;
  overflow: hidden;
  background: #343847;
}

.plan-preview div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  padding: 16px;
  background: #141720;
}

.plan-preview dt { color: #e5b94b; font-weight: 800; }
.plan-preview dd { margin: 0; color: #c9cdd8; font-size: 14px; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-box { width: min(100%, 420px); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  border-bottom: 1px solid #343847;
}

.auth-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 10px;
  background: transparent;
  color: #8f96aa;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.active { border-color: #5f73ee; color: #ffffff; }

form { display: grid; gap: 10px; }
form.hidden { display: none; }

label { color: #d9dce5; font-size: 14px; font-weight: 650; }

input {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid #3b4050;
  border-radius: 8px;
  padding: 12px 13px;
  background: #171a22;
  color: #f5f6fa;
  outline: none;
}

input:focus { border-color: #6e80ef; box-shadow: 0 0 0 3px rgba(110, 128, 239, 0.16); }

.remember-row,
.password-visibility {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aeb3c4;
  font-weight: 500;
}

.remember-row { margin: 4px 0 8px; }
.password-visibility { margin: -2px 0 4px; }
.remember-row input,
.password-visibility input { width: 17px; height: 17px; margin: 0; accent-color: #5f73ee; }
.auth-hint { margin: -4px 0 2px; color: #9296aa; font-size: 12px; line-height: 1.4; }

.submit-btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  background: #5f73ee;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.submit-btn:hover { background: #7183f2; }
.submit-btn:disabled { cursor: wait; opacity: 0.65; }

.auth-message { min-height: 22px; margin: 16px 0 0; color: #77c8a0; font-size: 14px; }
.auth-message.error { color: #ff8798; }
.mock-note { margin-top: 20px; color: #777f93; font-size: 12px; }

@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-panel { justify-content: flex-start; padding: 28px 24px; border-right: 0; border-bottom: 1px solid #303442; }
  .brand-mark { width: 42px; height: 42px; margin-bottom: 14px; }
  h1 { font-size: 30px; }
  .brand-panel p { margin-bottom: 20px; }
  .plan-preview { grid-template-columns: 1fr 1fr; }
  .plan-preview div { grid-template-columns: 42px 1fr; }
  .auth-panel { place-items: start center; padding: 34px 24px; }
}

@media (max-width: 480px) {
  .plan-preview { grid-template-columns: 1fr; }
}
