/* Authentication Page Styles */

.auth-body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
}

/* Auth Navigation - Match main site */
.auth-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.auth-navbar .nav-logo a {
  text-decoration: none;
}

.auth-navbar .nav-logo h2 {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  animation: float 3s ease-in-out infinite;
  margin: 0;
}

.auth-navbar .nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links .nav-link {
  color: var(--dark-color);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
}

.nav-links .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0.2rem;
  left: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links .nav-link:hover::after {
  width: calc(100% - 2rem);
}

.nav-links .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links .nav-link i {
  font-size: 0.85rem;
}

/* Remove the special page header for auth pages */
.page-header {
  display: none;
}

/* Auth Section - adjust for consistent header */
.auth-section {
  padding: 6rem 0 3rem;
  min-height: calc(100vh - 160px); /* Adjusted for footer height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.signup-container {
  grid-template-columns: 1.2fr 0.8fr;
}

.forgot-container {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
}

.signin-container {
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
}

.reset-container {
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out;
  border: 1px solid rgba(231, 76, 60, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.auth-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.auth-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.auth-form {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary-color);
  width: 16px;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
  transform: translateY(-2px);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
  background: rgba(231, 76, 60, 0.1);
}

.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-progress {
  height: 100%;
  width: 0%;
  background: #e74c3c;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: 0.85rem;
  color: #666;
}

.password-requirements {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.password-requirements h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.password-requirements li i {
  color: #e74c3c;
  width: 16px;
}

.password-requirements li.valid i {
  color: #27ae60;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-color);
}

.checkbox-label input:checked ~ .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkbox-label input:checked ~ .checkmark::after {
  opacity: 1;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.auth-submit:active {
  transform: translateY(0);
}

.btn.btn-secondary.btn-large {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  z-index: 1;
}

.auth-divider span {
  position: relative;
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
  z-index: 2;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.auth-switch a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.auth-features {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out 0.3s both;
  border: 1px solid rgba(231, 76, 60, 0.1);
}

.auth-features h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(243, 156, 18, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(231, 76, 60, 0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(243, 156, 18, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.feature-item div {
  flex: 1;
}

.feature-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.feature-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-item span {
  display: block;
  font-weight: 500;
  color: var(--dark-color);
}

.success-message {
  text-align: center;
  padding: 2.5rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 12px;
  border: 2px solid rgba(39, 174, 96, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.success-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--success-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.success-message p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-message .note {
  font-size: 0.9rem;
  color: #888;
}

.success-message a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.success-message a:hover {
  text-decoration: underline;
}

/* Loading states */
.auth-submit.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.auth-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Footer Styles for Auth Pages */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: #bbb;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Social Media Links for Auth Pages */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.social-link i {
  position: relative;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-link.facebook {
  background: linear-gradient(135deg, #3b5998, #8b9dc3);
}

.social-link.twitter {
  background: linear-gradient(135deg, #1da1f2, #0084b4);
}

.social-link.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Design Updates */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 600px;
  }
  
  .signup-container,
  .forgot-container,
  .signin-container,
  .reset-container {
    grid-template-columns: 1fr;
  }
  
  .auth-features {
    order: -1;
  }
}

@media (max-width: 768px) {
  .auth-navbar .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .auth-section {
    min-height: calc(100vh - 140px);
    padding: 5rem 0 2rem;
  }
  
  .auth-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .auth-card {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .auth-header h1 {
    font-size: 1.8rem;
  }
  
  .auth-features h3 {
    font-size: 1.5rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    margin-top: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-section p, .footer-section a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-section {
    min-height: calc(100vh - 120px);
    padding: 4rem 0 1rem;
  }
  
  .auth-card {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .auth-header h1 {
    font-size: 1.6rem;
  }
  
  .auth-emoji {
    font-size: 2.5rem;
  }
  
  .nav-links .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .feature-item i {
    margin-top: 0;
  }
  
  .footer {
    padding: 1.5rem 0 1rem;
  }
  
  .footer-content {
    gap: 1rem;
  }
  
  .social-links {
    justify-content: center;
    gap: 0.8rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section p, .footer-section a {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .footer-bottom {
    font-size: 0.8rem;
    padding-top: 1.5rem;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Form Error Styles */
.form-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.form-error i {
    font-size: 1.2rem;
    color: #e74c3c;
}

.form-error p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-control.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
