/* Authentication Layout Styles */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-wrapper .content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
}

/* Authentication Page Styles */
.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab-btn:hover {
  color: #007bff;
}

/* OTP Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background-color: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 0 24px 24px;
}

.otp-icon {
  text-align: center;
  margin-bottom: 20px;
}

.otp-icon i {
  font-size: 48px;
  color: #007bff;
}

.otp-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.otp-input-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.otp-input {
  display: flex;
  gap: 10px;
}

.otp-input .p-inputotp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.otp-input .p-inputotp-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.otp-info p {
  margin: 0;
  color: #666;
}

.resend-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.resend-btn:hover {
  color: #0056b3;
}

.resend-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
  text-decoration: none;
}

.otp-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff6b6b;
  font-weight: 500;
}

.otp-timer i {
  font-size: 16px;
}

.otp-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.otp-buttons .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 100px;
}

.otp-buttons .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Enhancements */
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.pass-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #007bff;
}

.social-login-btn .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.social-login-btn .btn:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-wrapper {
    padding: 10px;
  }

  .auth-wrapper .content {
    border-radius: 15px;
  }

  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header {
    padding: 20px 20px 0;
  }

  .modal-body {
    padding: 0 20px 20px;
  }

  .otp-buttons {
    flex-direction: column;
  }

  .otp-buttons .btn {
    width: 100%;
  }

  .otp-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Additional Auth Page Styling */
.auth-wrapper .login-header h3 {
  color: #333;
  font-weight: 600;
  margin-bottom: 0;
}

.auth-wrapper .login-header h3 span {
  color: #007bff;
}

.auth-wrapper .account-content {
  padding: 40px;
}

@media (max-width: 768px) {
  .auth-wrapper .account-content {
    padding: 20px;
  }
}