:root {
  --green: #1DB954;
  --green-dark: #158a3e;
  --blue: #1a56db;
  --blue-dark: #1040b0;
  --red: #e53935;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-dark: #374151;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1a3a6b 50%, #0d7a3a 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: '';
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,185,84,0.15) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.15) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
}

.auth-card {
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.auth-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.auth-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  color: #0f172a;
}
.auth-logo-text .green { color: var(--green); }
.auth-logo-text .blue { color: var(--blue); }

.auth-logo-pro {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 24px;
  text-align: center;
}

.auth-tabs {
  display: flex;
  background: var(--gray-light);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--gray-dark);
  transition: border 0.2s, box-shadow 0.2s;
  background: white;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,86,219,0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 4px 16px rgba(29,185,84,0.3);
}

.btn-green:hover {
  box-shadow: 0 6px 24px rgba(29,185,84,0.4);
}

.auth-msg {
  font-size: 13px;
  color: var(--red);
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

.auth-msg.success { color: var(--green); }

@media (max-width: 500px) {
  body { padding: 12px; }
  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .auth-title { font-size: 22px; }
  .auth-subtitle { font-size: 12px; }
}
