@charset "UTF-8";
:root {
  --primary-blue: #3B82F6;
  --accent-green: #22C55E;
  --text-light: #E5E7EB;
  --bg-dark: #0F1419;
  --bg-darker: #0A0E13;
  --bg-card: #1A1F29;
  --text-muted: #9CA3AF;
  --border-color: rgba(59, 130, 246, 0.15);
  --error-red: #EF4444;
}

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

body {
  font-family: "Archivo", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated gradient background */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.06) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  animation: gradientShift 20s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(5%, -5%) rotate(5deg);
  }
  66% {
    transform: translate(-5%, 5%) rotate(-5deg);
  }
}
/* Grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Left Side - Branding */
.auth-branding {
  padding: 3rem;
}

.logo-container {
  margin-bottom: 3rem;
}

.logo-container svg {
  height: 50px;
  width: auto;
}

.auth-branding h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-branding p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-top: 3rem;
}

.feature-list li {
  padding: 1rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1.3rem;
  width: 24px;
  height: 24px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right Side - Forms */
.auth-forms {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-forms::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.form-content {
  position: relative;
  z-index: 1;
}

.form-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--bg-darker);
  padding: 0.5rem;
  border-radius: 12px;
}

.tab-button {
  flex: 1;
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.tab-button:hover:not(.active) {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-light);
}

.form-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-light);
  font-family: "Archivo", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input::placeholder {
  color: var(--text-muted);
}

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary-blue);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.remember-me input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #2563EB;
}

.submit-button {
  width: 100%;
  padding: 1.1rem;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.submit-button:hover {
  background: #2563EB;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.submit-button:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 1rem;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-button {
  padding: 1rem;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-light);
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-button:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.1);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error-red);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
.terms {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.terms a {
  color: var(--primary-blue);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

/* Code decoration */
.code-decoration {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: rgba(59, 130, 246, 0.2);
  pointer-events: none;
}

.code-decoration.top-left {
  top: 1rem;
  left: 1rem;
}

.code-decoration.bottom-right {
  bottom: 1rem;
  right: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .auth-branding {
    display: none;
  }
  .auth-branding h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .auth-forms {
    padding: 2rem 1.5rem;
  }
  .social-login {
    grid-template-columns: 1fr;
  }
  .form-tabs {
    gap: 0.5rem;
  }
  .tab-button {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }
}