/* ================= AUTH PAGES ================= */

.auth-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
}

.auth-back-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.auth-back-btn:hover {
  color: var(--accent);
}

.auth-logo-img {
  height: 40px;
  width: auto;
}

/* ================= AUTH CONTAINER ================= */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  background: var(--bg-main);
}

.auth-card {
  max-width: 450px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: authAppear 0.5s ease;
}

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

/* ================= HEADER ================= */
.auth-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ================= FORM ================= */
/* ================= FORM ================= */
.auth-form-group {
  position: relative;
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.auth-form-group input {
  width: 100%;
  padding: 14px 45px 14px 16px; /* Right padding for button */
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 15px;
  transition: all 0.3s ease;
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.1);
}

.auth-form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Password Toggle - FIXED POSITIONING */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 35px; /* Position below label (label height ~20px + margin 6px + input top padding) */
  transform: translateY(0);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

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

/* Adjust for mobile */
@media (max-width: 480px) {
  .password-toggle {
    top: 40px;
    right: 12px;
    font-size: 16px;
    width: 28px;
    height: 28px;
  }
}

/* Password Strength */
.password-strength {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}

.strength-bar.weak {
  width: 33.33%;
  background: #ff4d4d;
}

.strength-bar.medium {
  width: 66.66%;
  background: #ffb347;
}

.strength-bar.strong {
  width: 100%;
  background: #4caf50;
}

.strength-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Auth Options */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

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

.forgot-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

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

/* Terms Checkbox */
.auth-terms {
  margin: 5px 0;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.terms-checkbox a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-submit-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3);
}

.auth-submit-btn i {
  transition: transform 0.3s ease;
}

.auth-submit-btn:hover i {
  transform: translateX(5px);
}

/* ================= DIVIDER ================= */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 1;
}

.auth-divider span {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ================= SOCIAL LOGIN ================= */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.social-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-btn.google {
  color: #DB4437;
}

.social-btn.google i {
  font-size: 18px;
}

.social-btn.github {
  color: #fff;
}

.social-btn.github i {
  font-size: 18px;
}

/* ================= REDIRECT LINK ================= */
.auth-redirect {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-redirect a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

/* ================= FOOTER ================= */
.auth-footer {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.auth-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .auth-top-bar {
    padding: 0 20px;
  }
  
  .auth-logo-img {
    height: 32px;
  }
  
  .auth-back-btn span {
    display: none;
  }
  
  .auth-card {
    padding: 30px 20px;
  }
  
  .auth-title {
    font-size: 28px;
  }
  
  .auth-subtitle {
    font-size: 14px;
  }
  
  .auth-form-group input {
    padding: 12px 14px;
  }
  
  .auth-submit-btn {
    padding: 14px;
  }
  
  .social-btn {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .terms-checkbox {
    font-size: 12px;
  }
}