:root {
  --bg-primary: #0B1220;
  --bg-card: #121C2E;
  --bg-border: #22304A;
  --text-primary: #E6EEF8;
  --text-secondary: #9CB0C9;
  --accent: #22D3EE;
  --danger: #FF6B6B;
  --success: #2EE59D;
}

* { box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #18BDDB; }

.app {
  min-height: 100%;
  display: flex;
  overflow: auto;
}

.left-panel {
  flex: 1;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(11, 18, 32, 0.8) 100%);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-inner { max-width: 480px; margin: 0 auto; width: 100%; }

.brand-block { margin-bottom: 48px; }

.logo-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, #18BDDB 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.brand-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.features { margin-top: 48px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(34, 211, 238, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.right-inner { width: 100%; max-width: 440px; }

.mobile-logo { display: none; text-align: center; margin-bottom: 32px; }
.mobile-logo .logo-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 16px;
  box-shadow: none;
}
.mobile-title { font-size: 24px; font-weight: 700; }

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.03);
}

.card h2 { font-size: 26px; font-weight: 700; margin: 0 0 8px; }

.card p.sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  line-height: 1.6;
}

.field { margin-bottom: 18px; }
.field-tight { margin-bottom: 10px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.input-field {
  background-color: var(--bg-primary);
  border: 1px solid var(--bg-border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  transition: all 0.2s;
  font-size: 15px;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.input-field::placeholder { color: var(--text-secondary); }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 18px;
  gap: 12px;
}

.hint-link { font-size: 13px; }

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 15px;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: #18BDDB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ghost button for "create account" */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.03);
  border-color: var(--text-secondary);
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.notice.error {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
  color: #FFD1D1;
}

.notice.success {
  border-color: rgba(46, 229, 157, 0.25);
  background: rgba(46, 229, 157, 0.08);
  color: #CFF9EA;
}

.security {
  margin-top: 22px;
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--bg-border);
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .left-panel { display: none; }
  .mobile-logo { display: block; }
  .card { padding: 28px; }
}
