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

body {
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: #f0f4ff;
}

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

/* Left Panel */
.auth-left {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand span { font-size: 2.5rem; }

.auth-brand h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.auth-tagline {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  font-weight: 300;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-features li {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

/* Right Panel */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #f0f4ff;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(99,102,241,0.1);
  border: 1px solid #e2e8f0;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid #e2e8f0;
}

.tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.field input {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  transition: border 0.2s;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
}

.btn-auth {
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 4px;
}

.btn-auth:hover { opacity: 0.9; transform: translateY(-1px); }

.auth-msg {
  font-size: 0.82rem;
  text-align: center;
  min-height: 18px;
  color: #ef4444;
}

.auth-msg.success { color: #10b981; }

/* Mobile */
@media (max-width: 640px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}
