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

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
}

.auth-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* LEFT PANEL */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  color: #fff;
}

.auth-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 48px;
  display: block;
}

.auth-left h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.auth-left h2 span { opacity: 0.75; }

.auth-left p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 340px;
}

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

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

/* TABS */
.auth-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* FORM */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group input {
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1e293b;
}

.form-group input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.btn-auth {
  width: 100%;
  padding: 12px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

.btn-auth:hover { background: #3730a3; }
.btn-auth:active { transform: scale(0.98); }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  color: #dc2626;
  font-size: 0.83rem;
  font-weight: 500;
  min-height: 18px;
  margin-bottom: 4px;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 16px;
}

.auth-switch a {
  color: #4f46e5;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .auth-left { display: none; }
  .auth-right { padding: 24px 16px; }
  .auth-card { padding: 28px 20px; }
}
