/* =========================================
   AUTHENTICATION STYLESHEET (DARK THEME)
   Matches Portfolio: Lime Green & Cyan
   ========================================= */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #13131f;
  
  --primary: #32cd32; /* Lime green */
  --primary-hover: #2db82d;
  --primary-light: rgba(50, 205, 50, 0.1);
  --primary-border: rgba(50, 205, 50, 0.3);
  
  --secondary: #00ffff; /* Cyan / Lime blue */
  
  --bg-gradient-start: var(--primary);
  --bg-gradient-end: var(--secondary);

  --text-dark: #111827; /* Used for specific inverse contrast if needed */
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #55556a;
  
  --border-color: rgba(50, 205, 50, 0.15);
  --border-hover: rgba(50, 205, 50, 0.5);
  
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* ================= CONTAINER ================= */
.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  background: var(--bg-card);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ================= LEFT PANEL (BRANDING) ================= */
.auth-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(0, 255, 255, 0.1)), var(--bg-secondary);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(50, 205, 50, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand {
  position: relative;
  z-index: 1;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-border);
  color: var(--primary);
}

.brand h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.brand p {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

.features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
}

.feature-item p {
  font-weight: 500;
  font-size: 1.05rem;
}

/* ================= RIGHT PANEL (FORMS) ================= */
.auth-right {
  flex: 1.2;
  padding: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-primary);
}

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

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

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

.mobile-logo {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.logo-icon-small {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ================= SOCIAL LOGIN ================= */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.social-btn i {
  font-size: 1.2rem;
}

/* ================= DIVIDER ================= */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  position: relative;
  background: var(--bg-primary);
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================= INPUTS ================= */
.input-row {
  display: flex;
  gap: 1rem;
}

.input-row .input-group {
  flex: 1;
}

.input-group {
  margin-bottom: 1.25rem;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  left: auto !important;
  cursor: pointer;
  color: var(--text-muted);
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.remember-me label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.remember-me a {
  color: var(--primary);
  text-decoration: none;
}

.remember-me a:hover {
  text-decoration: underline;
}

/* ================= BUTTONS ================= */
.btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--bg-primary); /* Dark text on bright button */
  border: none;
  border-radius: 10px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s, opacity 0.2s;
  margin-bottom: 1rem;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  width: 100%;
  padding: 0.875rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.form-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* ================= OTP FORM ================= */
.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--text-primary);
}

.otp-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.otp-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 255, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.otp-info span { display: block; font-size: 0.85rem; }
.otp-info strong { display: block; font-size: 0.95rem; color: var(--text-primary); }

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.otp-box {
  width: 50px;
  height: 60px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-family);
  transition: all 0.2s;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .mobile-logo { display: flex; }
  .auth-wrapper {
    max-width: 500px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .auth-right { padding: 2rem; }
  .input-row { flex-direction: column; gap: 0; }
  .otp-box { width: 40px; height: 50px; font-size: 1.25rem; }
}
