/* Authentication Pages Styles */

.auth-section {
  min-height: calc(100vh - 200px);
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.auth-container.single-card {
  grid-template-columns: 1fr;
  max-width: 500px;
  justify-items: center;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.auth-header h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
  font-size: 1rem;
}

.auth-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.input-group i {
  position: absolute;
  left: 15px;
  color: #ff6b35;
  z-index: 1;
}

.input-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8f9fa;
}

.form-group select {
  padding-left: 15px;
  cursor: pointer;
}

.input-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b35;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.password-toggle {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
  z-index: 1;
}

.password-toggle:hover {
  color: #ff6b35;
}

.password-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: #e1e5e9;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength::before {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: #ff6b35;
  transition: all 0.3s;
}

.password-strength.weak::before {
  width: 33%;
  background: #dc3545;
}

.password-strength.medium::before {
  width: 66%;
  background: #ffc107;
}

.password-strength.strong::before {
  width: 100%;
  background: #28a745;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #666;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #ff6b35;
  border-color: #ff6b35;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-link {
  color: #ff6b35;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: #e55a2b;
}

.btn-auth {
  width: 100%;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

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

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

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.divider span {
  background: white;
  padding: 0 1rem;
  color: #666;
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  background: white;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-social:hover {
  border-color: #ff6b35;
  transform: translateY(-2px);
}

.btn-social.google:hover {
  border-color: #db4437;
  color: #db4437;
}

.btn-social.facebook:hover {
  border-color: #3b5998;
  color: #3b5998;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e1e5e9;
}

.auth-footer p {
  color: #666;
  margin-bottom: 0.5rem;
}

.auth-footer a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: #e55a2b;
}

.auth-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 500px;
}

.auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
}

.image-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.image-overlay p {
  opacity: 0.9;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select {
  border-color: #dc3545;
  background: #fff5f5;
}

.form-group.success input,
.form-group.success select {
  border-color: #28a745;
  background: #f8fff8;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Loading State */
.btn-auth.loading {
  position: relative;
  color: transparent;
}

.btn-auth.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;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
  }

  .auth-card {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-image {
    height: 300px;
    order: -1;
  }

  .social-login {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .auth-section {
    padding: 1rem 0;
  }

  .auth-card {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .input-group input,
  .form-group select {
    padding: 10px 12px 10px 40px;
  }

  .btn-auth {
    padding: 12px;
    font-size: 1rem;
  }
}

/* Active state for navigation */
.nav-menu a.active,
.auth-buttons .active {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}
