:root {
  --brand-dark: #1a1a1a;
  --brand-gold: #ffc107;
  --brand-gold-dark: #e6ac00;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #1a1a1a;
  --hint: #6b7280;
  --border: rgba(26, 26, 26, 0.08);
  --danger: #dc2626;
}

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

body {
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button,
input,
textarea,
select,
label,
a,
h1, h2, h3, h4, h5, h6,
p, span {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

strong, b {
  font-weight: 600;
}

.hidden { display: none !important; }

.site-wrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.site-header {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.site-logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.tagline {
  margin-top: 12px;
  color: var(--hint);
  font-size: 12px;
  line-height: 1.45;
}

.site-main {
  width: 100%;
  flex: 0 0 auto;
}

.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hint);
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 14px;
  background: #fff;
  color: var(--text);
}

.auth-form input::placeholder {
  color: #9ca3af;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--brand-gold-dark);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.btn-primary:hover { background: var(--brand-gold-dark); }

.auth-card.register-mode {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.auth-card.register-mode .tab {
  border-color: var(--border);
  color: var(--text);
}

.auth-card.register-mode .tab.active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.auth-form-register label {
  color: var(--hint);
}

.auth-form-register input {
  margin-bottom: 0;
}

.password-field {
  position: relative;
  margin-bottom: 14px;
}

.password-field input {
  padding-right: 42px;
  margin-bottom: 0;
}

.toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--hint);
  cursor: pointer;
  line-height: 0;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-pass svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.req { color: var(--danger); }

.telegram-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-send-code {
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gold);
  color: var(--brand-dark);
  white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
  background: var(--brand-gold-dark);
}

.btn-send-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field-hint {
  font-size: 12px;
  color: var(--hint);
  line-height: 1.45;
  margin-bottom: 14px;
}

.verify-status {
  font-size: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.verify-status.pending {
  background: rgba(255, 193, 7, 0.15);
  color: #92400e;
  border-color: rgba(230, 172, 0, 0.45);
}

.turnstile-wrap {
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.btn-register:hover:not(:disabled) {
  background: var(--brand-gold-dark);
}

.btn-register:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.register-warning {
  margin-top: 12px;
  text-align: center;
  color: var(--danger);
  font-size: 12px;
}

.auth-error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.4;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  color: var(--hint);
  font-size: 12px;
}
